Skip to content

Add windows build script #11

Add windows build script

Add windows build script #11

Workflow file for this run

name: Fix PNPM Dependency Hash
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-nix:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: dorny/paths-filter@v3
with:
filters: |
files:
- 'flake.nix'
- 'nix/package.nix'
- 'package.json'
- 'pnpm-lock.yaml'
- uses: DeterminateSystems/nix-installer-action@main
if: steps.changed-files.outputs.files == 'true'
- uses: DeterminateSystems/magic-nix-cache-action@main
if: steps.changed-files.outputs.files == 'true'
- if: steps.changed-files.outputs.files == 'true'
run: |
if nix build --print-build-logs .#vermilion 2> /tmp/log; then
exit 0
fi
hash="$(grep 'got:' /tmp/log | awk '{print $2}')"
echo "hash=$hash"
sed -e "s#hash =.*\$#hash = \"$hash\";#g" -i nix/package.nix
git diff
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[CI]: update pnpm dependency hash"