|
16 | 16 |
|
17 | 17 | jobs: |
18 | 18 | nix: |
19 | | - runs-on: "${{ matrix.system == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}" |
| 19 | + runs-on: "${{ matrix.runs-on }}" |
20 | 20 |
|
21 | 21 | strategy: |
22 | 22 | fail-fast: false |
23 | 23 | matrix: |
24 | | - system: |
25 | | - - aarch64 |
26 | | - - x86_64 |
27 | | - nix-command: |
28 | | - - fmt -- --check |
29 | | - - eval .#apps.$_system.nixos-shell.program |
30 | | - - eval .#apps.$_system.setup.program |
31 | | - |
32 | 24 | include: |
33 | 25 | # - nix-command: develop .#jdk8 --profile result |
34 | | - # system: x86_64 |
| 26 | + # runs-on: ubuntu-latest |
35 | 27 | # - nix-command: develop .#jdk11 --profile result |
36 | | - # system: x86_64 |
| 28 | + # runs-on: ubuntu-latest |
37 | 29 | # - nix-command: develop .#jdk17 --profile result |
38 | | - # system: x86_64 |
| 30 | + # runs-on: ubuntu-latest |
39 | 31 | # - nix-command: develop .#php74 --profile result |
40 | | - # system: x86_64 |
| 32 | + # runs-on: ubuntu-latest |
41 | 33 | # - nix-command: develop .#php74-composer1 --profile result |
42 | | - # system: x86_64 |
| 34 | + # runs-on: ubuntu-latest |
43 | 35 | # - nix-command: develop .#php80 --profile result |
44 | | - # system: x86_64 |
| 36 | + # runs-on: ubuntu-latest |
45 | 37 | # - nix-command: develop .#php81 --profile result |
46 | | - # system: x86_64 |
| 38 | + # runs-on: ubuntu-latest |
| 39 | + |
| 40 | + - nix-command: fmt -- --check |
| 41 | + runs-on: ubuntu-24.04-arm |
| 42 | + - nix-command: fmt -- --check |
| 43 | + runs-on: ubuntu-latest |
| 44 | + |
| 45 | + - nix-command: eval .#apps.aarch64-linux.nixos-shell.program |
| 46 | + runs-on: ubuntu-24.04-arm |
| 47 | + - nix-command: eval .#apps.x86_64-linux.nixos-shell.program |
| 48 | + runs-on: ubuntu-latest |
| 49 | + |
| 50 | + - nix-command: eval .#apps.aarch64-linux.setup.program |
| 51 | + runs-on: ubuntu-24.04-arm |
| 52 | + - nix-command: eval .#apps.x86_64-linux.setup.program |
| 53 | + runs-on: ubuntu-latest |
47 | 54 |
|
48 | 55 | - nix-command: build .#homeConfigurations."tobias@gamer".activationPackage |
49 | | - system: x86_64 |
| 56 | + runs-on: ubuntu-latest |
50 | 57 |
|
51 | 58 | - nix-command: build .#nixOnDroidConfigurations.pixel7a.activationPackage --impure |
52 | | - system: aarch64 |
| 59 | + runs-on: ubuntu-24.04-arm |
53 | 60 |
|
54 | 61 | - nix-command: build .#nixosConfigurations.argon.config.system.build.toplevel |
55 | | - system: aarch64 |
| 62 | + runs-on: ubuntu-24.04-arm |
56 | 63 | deploy-agent: argon |
57 | 64 | - nix-command: build .#nixosConfigurations.krypton.config.system.build.toplevel |
58 | | - system: x86_64 |
| 65 | + runs-on: ubuntu-latest |
59 | 66 | deploy-agent: krypton |
60 | 67 | - nix-command: build .#nixosConfigurations.neon.config.system.build.toplevel |
61 | | - system: x86_64 |
62 | | - deploy-agent: neon |
63 | | - deploy-args: --async |
| 68 | + runs-on: ubuntu-latest |
64 | 69 | - nix-command: build .#nixosConfigurations.xenon.config.system.build.toplevel |
65 | | - system: aarch64 |
| 70 | + runs-on: ubuntu-24.04-arm |
66 | 71 | deploy-agent: xenon |
67 | 72 |
|
68 | | - # - nix-command: build .#packages.$_system.rpi-firmware |
69 | | - # system: aarch64 |
70 | | - # - nix-command: build .#packages.$_system.rpi-image |
71 | | - # system: aarch64 |
72 | | - # - nix-command: build .#packages.$_system.installer-image |
73 | | - # system: x86_64 |
| 73 | + - nix-command: build .#packages.aarch64-linux.rpi-firmware |
| 74 | + runs-on: ubuntu-24.04-arm |
| 75 | + - nix-command: build .#packages.aarch64-linux.rpi-image |
| 76 | + runs-on: ubuntu-24.04-arm |
| 77 | + - nix-command: build .#packages.aarch64-linux.installer-image |
| 78 | + runs-on: ubuntu-latest |
74 | 79 |
|
75 | 80 | steps: |
76 | 81 | - name: Checkout repository |
@@ -104,14 +109,8 @@ jobs: |
104 | 109 | useDaemon: false |
105 | 110 |
|
106 | 111 | - name: Build command |
107 | | - env: |
108 | | - _system: ${{ matrix.system }}-linux |
109 | 112 | run: nix ${{ matrix.nix-command }} |
110 | 113 |
|
111 | | - - name: Remove result symlink |
112 | | - if: always() |
113 | | - run: rm --force result |
114 | | - |
115 | 114 | - name: Deploy cachix-agent spec |
116 | 115 | if: github.ref == 'refs/heads/master' && inputs.branch == '' && matrix.deploy-agent |
117 | 116 | env: |
|
0 commit comments