-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.35 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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