update config #244
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, 'build')" | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v17 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/install-nix-action@v20 | |
with: | |
name: arcueid | |
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
- run: | | |
nix-channel --list | |
nix-channel --remove nixpkgs | |
nix-channel --add https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixpkgs-unstable nixpkgs | |
nix-channel --update | |
./install_nixpkgs.sh | |
build-macos-latest: | |
runs-on: macos-latest | |
if: "contains(github.event.head_commit.message, 'build')" | |
steps: | |
- uses: actions/[email protected] | |
- uses: cachix/install-nix-action@v17 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/install-nix-action@v20 | |
with: | |
name: arcueid | |
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
- run: | | |
nix-channel --list | |
nix-channel --remove nixpkgs | |
nix-channel --add https://mirrors.tuna.tsinghua.edu.cn/nix-channels/nixpkgs-unstable nixpkgs | |
nix-channel --update | |
./install_nixpkgs.sh |