-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (41 loc) · 1.23 KB
/
main.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
name: "build Nix packages"
on:
pull_request:
push:
# schedule:
# - cron: '53 19 * * *' # AEST 5:53 am
workflow_run:
workflows: [update Nix packages]
types: [completed]
workflow_dispatch:
jobs:
update-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with: { nix_path: 'nixpkgs=channel:nixpkgs-unstable' }
- run: |
nix-shell ./update-shell.nix --run './update.py check'
build:
strategy:
fail-fast: false
matrix:
# end-user packages to ci build for cache
pkg:
[aslp, bap-aslp, bap-uq-pac, basil,
alive2, retdec-uq-pac, asl-translator]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with: { nix_path: 'nixpkgs=channel:nixpkgs-unstable' }
- uses: cachix/cachix-action@v12
with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' }
- run: nix-build -A ${{matrix.pkg}}
- name: Run nix-build -A ${{matrix.pkg}}.tests -o result-tests
run: |
if nix-instantiate --eval -A ${{matrix.pkg}}.tests; then
nix-build -A ${{matrix.pkg}}.tests -o result-tests
fi
- run: ls -l