248 orchestration depositForBurn #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nix Flake Check | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- 'release-*' | |
- 'dev-*' | |
permissions: | |
contents: read | |
jobs: | |
flake-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v9 | |
- name: Enable flakes | |
uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Check Nix flake inputs | |
run: nix flake check | |
- name: Show flake metadata | |
if: always() # Run even if previous step fails | |
run: nix flake metadata | |
- name: Validate flake outputs | |
if: always() # Run even if previous step fails | |
run: nix flake show | |
- name: Check build in Nix dev shell | |
run: | | |
# Enter nix develop and run build commands | |
nix develop --command bash -c ' | |
# Install dependencies | |
yarn install | |
# Build the project | |
yarn build | |
# Build cosmic-swingset | |
cd packages/cosmic-swingset && make | |
' |