Skip to content

Commit fa66213

Browse files
committed
i
1 parent 7d35b40 commit fa66213

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,61 +16,66 @@ on:
1616

1717
jobs:
1818
nix:
19-
runs-on: "${{ matrix.system == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}"
19+
runs-on: "${{ matrix.runs-on }}"
2020

2121
strategy:
2222
fail-fast: false
2323
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-
3224
include:
3325
# - nix-command: develop .#jdk8 --profile result
34-
# system: x86_64
26+
# runs-on: ubuntu-latest
3527
# - nix-command: develop .#jdk11 --profile result
36-
# system: x86_64
28+
# runs-on: ubuntu-latest
3729
# - nix-command: develop .#jdk17 --profile result
38-
# system: x86_64
30+
# runs-on: ubuntu-latest
3931
# - nix-command: develop .#php74 --profile result
40-
# system: x86_64
32+
# runs-on: ubuntu-latest
4133
# - nix-command: develop .#php74-composer1 --profile result
42-
# system: x86_64
34+
# runs-on: ubuntu-latest
4335
# - nix-command: develop .#php80 --profile result
44-
# system: x86_64
36+
# runs-on: ubuntu-latest
4537
# - 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
4754

4855
- nix-command: build .#homeConfigurations."tobias@gamer".activationPackage
49-
system: x86_64
56+
runs-on: ubuntu-latest
5057

5158
- nix-command: build .#nixOnDroidConfigurations.pixel7a.activationPackage --impure
52-
system: aarch64
59+
runs-on: ubuntu-24.04-arm
5360

5461
- nix-command: build .#nixosConfigurations.argon.config.system.build.toplevel
55-
system: aarch64
62+
runs-on: ubuntu-24.04-arm
5663
deploy-agent: argon
5764
- nix-command: build .#nixosConfigurations.krypton.config.system.build.toplevel
58-
system: x86_64
65+
runs-on: ubuntu-latest
5966
deploy-agent: krypton
6067
- 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
6469
- nix-command: build .#nixosConfigurations.xenon.config.system.build.toplevel
65-
system: aarch64
70+
runs-on: ubuntu-24.04-arm
6671
deploy-agent: xenon
6772

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
7479

7580
steps:
7681
- name: Checkout repository
@@ -104,14 +109,8 @@ jobs:
104109
useDaemon: false
105110

106111
- name: Build command
107-
env:
108-
_system: ${{ matrix.system }}-linux
109112
run: nix ${{ matrix.nix-command }}
110113

111-
- name: Remove result symlink
112-
if: always()
113-
run: rm --force result
114-
115114
- name: Deploy cachix-agent spec
116115
if: github.ref == 'refs/heads/master' && inputs.branch == '' && matrix.deploy-agent
117116
env:

0 commit comments

Comments
 (0)