forked from Bos55/nix-config
dev #2
1 changed files with 5 additions and 10 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -32,22 +32,17 @@ jobs:
|
||||||
needs: determine-hosts
|
needs: determine-hosts
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
hostname: ${{ needs.determine-hosts.outputs.hosts }}
|
hostname: [
|
||||||
|
Development
|
||||||
|
Testing
|
||||||
|
]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: https://github.com/cachix/install-nix-action@v31
|
- uses: https://github.com/cachix/install-nix-action@v31
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: "Debug needs outputs"
|
- name: "Build host"
|
||||||
run: |
|
run: |
|
||||||
printf "%s\n" "${{ needs.determine-hosts.outputs.hosts }}"
|
|
||||||
- name: Debug Matrix
|
|
||||||
run: |
|
|
||||||
echo "The matrix value is: ${{ matrix.hostname }}"
|
|
||||||
- name: "Define host"
|
|
||||||
run: |
|
|
||||||
echo "Building for: ${{ matrix.hostname }}"
|
|
||||||
- run: |
|
|
||||||
nixos-rebuild build --flake ".#${{ matrix.hostname }}"
|
nixos-rebuild build --flake ".#${{ matrix.hostname }}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue