Skip to content

Commit

Permalink
accept nix build failure in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Dec 21, 2024
1 parent 64547d5 commit e22ebd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:
- name: Download WASM version of Glistix compiler
run: ./bin/download-compiler
- run: glistix deps download
shell: nix develop --command bash -e {0}
shell: nix develop -L --command bash -e {0}
# This will work even if compilation fails (as Lustre imports arent't valid on Nix)
# The main concern is generating files for deps and prelude
- name: Generate Nix files
run: glistix build --target nix
run: glistix build --target nix | true
shell: nix develop --command bash -e {0}
- name: Build site
run: glistix run
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v4
- run: ./bin/download-compiler
- run: glistix deps download
shell: nix develop --command bash -e {0}
shell: nix develop -L --command bash -e {0}
- run: glistix format --check src test
shell: nix develop --command bash -e {0}
# This will work even if compilation fails (as Lustre imports arent't valid on Nix)
# The main concern is generating files for deps and prelude
- name: Generate Nix files
run: glistix build --target nix
run: glistix build --target nix | true
shell: nix develop --command bash -e {0}
- run: glistix test
shell: nix develop --command bash -e {0}
Expand Down

0 comments on commit e22ebd0

Please sign in to comment.