forked from KD-lab-Open-Source/Perimeter
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (50 loc) · 1.41 KB
/
nix_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
47
48
49
50
51
52
53
54
name: Nix Build
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
env:
GH_CACHE_KEY: 1
jobs:
# build:
# strategy:
# fail-fast: false
# matrix:
# target: [
# #{ pkg: "aarch64-darwin", on: "macos-latest" },
# #{ pkg: "x86_64-darwin", on: "macos-latest" },
# { pkg: "x86_64-linux", on: "ubuntu-latest" },
# #{ pkg: "aarch64-linux", on: "ubuntu-latest" },
# ]
# env: [
# {name: "Release", flake: ""},
# {name: "Debug", flake: "_debug"},
# ]
# name: ${{matrix.target.pkg}} ${{matrix.env.name}}
# if: github.event.pull_request.draft != true
# runs-on: ${{matrix.target.on}}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/cache@v4
# id: cache
# with:
# path: /nix/store
# key: NIX-${{matrix.target.pkg}}-${{matrix.env.name}}-${{ env.GH_CACHE_KEY }}
# - uses: cachix/install-nix-action@v20
# with:
# github_access_token: ${{ secrets.GITHUB_TOKEN }}
# - run: nix build ".#platform_${{matrix.target.pkg}}${{matrix.env.flake}}"
check:
name: Check
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake check