5
5
merge_group :
6
6
push :
7
7
branches :
8
- - " master"
8
+ - master
9
+ - ' releases/**'
9
10
10
11
concurrency :
11
12
group : ${{ github.repository }}-${{ github.workflow }}
18
19
matrix : ${{ steps.set-matrix.outputs.matrix }}
19
20
steps :
20
21
- uses : actions/checkout@v4
21
- - uses : DeterminateSystems/nix-installer-action@v16
22
- - uses : DeterminateSystems/magic-nix-cache-action@v9
22
+ - uses : nixbuild/nix-quick-install-action@v30
23
23
- id : set-matrix
24
24
name : Generate Nix Matrix
25
25
run : |
28
28
matrix="$(nix eval --json '.#githubActions.matrix')"
29
29
echo "matrix=${matrix}" >> "$GITHUB_OUTPUT"
30
30
31
- nix-build :
31
+ nix-check :
32
32
needs : nix-matrix
33
33
runs-on : ${{ matrix.os }}
34
34
strategy :
@@ -37,21 +37,38 @@ jobs:
37
37
matrix : ${{ fromJSON(needs.nix-matrix.outputs.matrix) }}
38
38
steps :
39
39
- uses : actions/checkout@v4
40
- - uses : DeterminateSystems/nix-installer-action@v16
41
- - uses : DeterminateSystems/magic-nix-cache-action@v9
40
+ - uses : nixbuild/nix-quick-install-action@v30
41
+ - name : Restore and cache Nix store
42
+ uses : nix-community/cache-nix-action@v6
43
+ with :
44
+ primary-key : nix-${{ runner.os }}-${{ hashFiles('flake.*') }}
45
+ restore-prefixes-first-match : nix-${{ runner.os }}-
42
46
- run : nix build -L ".#${{ matrix.attr }}" --keep-going
43
47
44
- - name : Twister Tests
45
- uses : workflow/nix-shell-action@v3.3.2
46
- id : twister-tests
48
+ build :
49
+ runs-on : ubuntu-latest
50
+ strategy :
51
+ fail-fast : false
52
+ steps :
53
+ - uses : actions/checkout@v4
54
+ - uses : nixbuild/nix-quick-install-action@v30
55
+ - name : Restore and cache Nix store
56
+ uses : nix-community/cache-nix-action@v6
47
57
with :
48
- flakes-from-devshell : true
49
- script : |
50
- west init -l .
51
- west config --global update.narrow true
52
- west update
58
+ primary-key : nix-${{ runner.os }}-${{ hashFiles('flake.*') }}
59
+ restore-prefixes-first-match : nix-${{ runner.os }}-
60
+
61
+ - name : Load Nix Development Shell
62
+ uses : nicknovitski/nix-develop@v1
63
+
64
+ - name : Prepare Zephyr Project workspace
65
+ run : |
66
+ west config --global update.narrow true
67
+ west update
53
68
54
- ./scripts/run-tests --clobber-output --inline-logs -v -N -M
69
+ - name : Twister Tests
70
+ id : twister-tests
71
+ run : ./scripts/run-tests --clobber-output --inline-logs -v -N -M
55
72
56
73
- name : Merge Test Results
57
74
if : steps.twister-tests.conclusion == 'failure'
0 commit comments