-
-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (38 loc) · 1.11 KB
/
ci.yml
File metadata and controls
38 lines (38 loc) · 1.11 KB
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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
check:
runs-on: ${{ matrix.runs-on.labels }}
strategy:
matrix:
runs-on:
- labels: [ubuntu-latest]
system: x86_64-linux
- labels: [ubuntu-24.04-arm]
system: aarch64-linux
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
- run: nix flake check -L --system ${{ matrix.runs-on.system }}
publish:
if: github.event_name == 'push'
needs: [check]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: DeterminateSystems/nix-installer-action@7993355175c2765e5733dae74f3e0786fe0e5c4f # v12
- uses: DeterminateSystems/flakehub-push@8da9e38b7e77f2b0a8aa08a22e57cc5c6316ea72 #v5
with:
name: NixOS/amis
rolling: true
visibility: public