Make nix build optional.

Signed-off-by: KtorZ <5680256+KtorZ@users.noreply.github.com>
This commit is contained in:
KtorZ 2025-02-09 16:57:43 +01:00
parent d53f770d90
commit a6cdb5583d
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 11 additions and 3 deletions

View File

@ -6,7 +6,6 @@ on:
jobs: jobs:
nix-build: nix-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -20,5 +19,14 @@ jobs:
uses: DeterminateSystems/magic-nix-cache-action@v1 uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Build Aiken - name: Build Aiken
run: nix build shell: bash
run: |
set +e
nix build
exitcode="$?"
if [[ "$exitcode" != "0" ]] ; then
echo "::warning::Nix build failed with exit code $exitcode"
exit 0
else
exit "$exitcode"
fi