-
-
Notifications
You must be signed in to change notification settings - Fork 50
50 lines (43 loc) · 1.08 KB
/
ci.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
47
48
49
50
name: ci
on:
push:
branches:
- staging
workflow_run:
workflows:
- update
types:
- completed
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-13 # Intel
- macos-latest # Apple M1
- ubuntu-latest
build-flags:
- ""
- --override-input nixpkgs github:nixos/nixpkgs/nixpkgs-unstable
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: staging
- name: Install nix
uses: cachix/install-nix-action@V28
- name: Set up cachix
uses: cachix/cachix-action@v15
with:
name: nix-community
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Check with nix
run: |
nix flake check
- name: Build with nix
run: |
nix build ${{ matrix.build-flags }} .#{{stable,beta,minimal,default,complete}.toolchain,rust-analyzer{,-vscode-extension}}
./test
nix build ${{ matrix.build-flags }} .#latest.toolchain