@@ -8,47 +8,72 @@ permissions:
88jobs :
99 formatting :
1010 name : Formatting
11- runs-on : ubuntu-latest
11+ runs-on : ${{ matrix.architecture }}
1212 strategy :
1313 matrix :
14+ architecture : [ubuntu-24.04, ubuntu-24.04-arm]
1415 language : [rust, shell, python]
1516 steps :
1617 - name : Checkout code.
1718 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+ - name : Setup Nix.
20+ uses : cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
1821 - name : Check formatting.
19- run : make check-${{ matrix.language }}-formatting
22+ run : nix develop -c make check-${{ matrix.language }}-formatting
23+
2024 linting :
2125 name : Linting
22- runs-on : ubuntu-latest
26+ runs-on : ${{ matrix.architecture }}
2327 strategy :
2428 matrix :
29+ architecture : [ubuntu-24.04, ubuntu-24.04-arm]
2530 language : [rust]
2631 steps :
2732 - name : Checkout code.
2833 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+ - name : Setup Nix.
35+ uses : cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
2936 - name : Check linting.
30- run : make check-${{ matrix.language }}-linting
37+ run : nix develop -c make check-${{ matrix.language }}-linting
38+
3139 compile :
3240 name : Compile
33- runs-on : ubuntu-latest
41+ runs-on : ${{ matrix.architecture }}
42+ strategy :
43+ matrix :
44+ architecture : [ubuntu-24.04, ubuntu-24.04-arm]
3445 steps :
3546 - name : Checkout code.
3647 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
48+ - name : Setup Nix.
49+ uses : cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
3750 - name : Compile.
38- run : make compile
51+ run : nix develop -c make compile
52+
3953 unit-test :
4054 name : Unit Test
41- runs-on : ubuntu-latest
55+ runs-on : ${{ matrix.architecture }}
56+ strategy :
57+ matrix :
58+ architecture : [ubuntu-24.04, ubuntu-24.04-arm]
4259 steps :
4360 - name : Checkout code.
4461 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
62+ - name : Setup Nix.
63+ uses : cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
4564 - name : Unit test.
46- run : make unit-test
65+ run : nix develop -c make unit-test
66+
4767 end-to-end-test :
4868 name : End to End Test
49- runs-on : ubuntu-latest
69+ runs-on : ${{ matrix.architecture }}
70+ strategy :
71+ matrix :
72+ architecture : [ubuntu-24.04, ubuntu-24.04-arm]
5073 steps :
5174 - name : Checkout code.
5275 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
76+ - name : Setup Nix.
77+ uses : cachix/install-nix-action@4e002c8ec80594ecd40e759629461e26c8abed15 # v31.9.0
5378 - name : End to End test.
54- run : make end-to-end-test
79+ run : nix develop -c make end-to-end-test
0 commit comments