Make nix build optional.
Signed-off-by: KtorZ <5680256+KtorZ@users.noreply.github.com>
This commit is contained in:
parent
d53f770d90
commit
a6cdb5583d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue