Replace builds with tests
This commit is contained in:
parent
08a83e1d9b
commit
385ca89339
|
@ -1,27 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "master" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: sudo apt-get install -y qemu binfmt-support qemu-user-static
|
||||
|
||||
- name: Enable multiarch in Docker
|
||||
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v18
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: networkinventory
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- name: Build
|
||||
run: |
|
||||
./scripts/build-servers.sh
|
|
@ -0,0 +1,17 @@
|
|||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ "master" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v18
|
||||
- name: Build
|
||||
run: |
|
||||
./scripts/test_build.sh
|
|
@ -1,17 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
hosts=($(echo `nix eval .#nixosConfigurations --apply 'pkgs: builtins.concatStringsSep " " (builtins.attrNames pkgs)'` | xargs ))
|
||||
skip=(
|
||||
"desktop-vm"
|
||||
"gwyn"
|
||||
"staubfinger"
|
||||
)
|
||||
|
||||
for host in "${hosts[@]}"
|
||||
do
|
||||
# Check if the host is in the skip list
|
||||
if [[ " ${skip[*]} " =~ " ${host} " ]];then
|
||||
continue
|
||||
fi
|
||||
nix build .#nixosConfigurations.${host}.config.system.build.toplevel
|
||||
done
|
Loading…
Reference in New Issue