build demos with up to date flake
This commit is contained in:
parent
023991b4b7
commit
7d6827b411
1 changed files with 18 additions and 6 deletions
24
.github/workflows/demo.yml
vendored
24
.github/workflows/demo.yml
vendored
|
|
@ -11,19 +11,30 @@ jobs:
|
||||||
path-filter:
|
path-filter:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
changed: ${{ steps.filter.outputs.changed }}
|
changed: ${{ steps.filter.outputs.any_changed }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: dorny/paths-filter@v3
|
- uses: tj-actions/changed-files@v45
|
||||||
id: filter
|
id: filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
files: |
|
||||||
changed:
|
demo/**
|
||||||
- '.github/workflows/demo.yml'
|
lib/**
|
||||||
- 'demo/**'
|
modules/**
|
||||||
|
!modules/**/docs/**
|
||||||
|
test/**
|
||||||
|
flake.lock
|
||||||
|
flake.nix
|
||||||
|
.github/workflows/demo.yml
|
||||||
|
separator: "\n"
|
||||||
|
|
||||||
|
- env:
|
||||||
|
ALL_CHANGED_FILES: ${{ steps.filter.outputs.all_changed_files }}
|
||||||
|
run: |
|
||||||
|
echo $ALL_CHANGED_FILES
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [ "path-filter" ]
|
needs: [ "path-filter" ]
|
||||||
|
|
@ -60,6 +71,7 @@ jobs:
|
||||||
- name: Build ${{ matrix.demo.name }} .#${{ matrix.demo.flake }}
|
- name: Build ${{ matrix.demo.name }} .#${{ matrix.demo.flake }}
|
||||||
run: |
|
run: |
|
||||||
cd demo/${{ matrix.demo.name }}
|
cd demo/${{ matrix.demo.name }}
|
||||||
|
nix flake update --override-input selfhostblocks ../.. selfhostblocks
|
||||||
nix \
|
nix \
|
||||||
--print-build-logs \
|
--print-build-logs \
|
||||||
--option keep-going true \
|
--option keep-going true \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue