-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (45 loc) · 1.34 KB
/
nix-build.yml
File metadata and controls
54 lines (45 loc) · 1.34 KB
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
45
46
47
48
49
50
51
52
53
54
name: Build GLF-OS Configurations
on:
push:
branches: [main, dev]
paths:
- '**/*.nix'
- '**/*.lock'
pull_request:
branches: ['**']
paths:
- '**/*.nix'
- '**/*.lock'
workflow_dispatch:
jobs:
buildGLF-Configurations:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v17
- name: Build GLF
run: nix build .#nixosConfigurations.glf-installer.config.system.build.toplevel
continue-on-error: false
test-user-config:
name: Test User Configuration
runs-on: ubuntu-latest
needs: []
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
- name: Build User Test Configuration
run: nix build .#nixosConfigurations.user-test.config.system.build.toplevel
report:
name: Final Status
runs-on: ubuntu-latest
needs: [buildGLF-Configurations, test-user-config]
steps:
- name: Combine Results
run: |
echo "Build status:"
echo "- Installer: ${{ needs.buildGLF-Configurations.result }}"
echo "- Installer: ${{ contains(needs.*.result, 'success') && '✅' || '❌' }}"
echo "- User Config: ${{ needs.test-user-config.result }}"
echo "✅ Testing completed"
if: always()