add ci action to build demos
This commit is contained in:
parent
96a3314a76
commit
335bb9fa54
1 changed files with 42 additions and 0 deletions
42
.github/workflows/demo.yml
vendored
Normal file
42
.github/workflows/demo.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Demo
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
demo:
|
||||
- name: homeassistant
|
||||
flake: basic
|
||||
- name: homeassistant
|
||||
flake: ldap
|
||||
|
||||
- name: nextcloud
|
||||
flake: basic
|
||||
- name: nextcloud
|
||||
flake: ldap
|
||||
- name: nextcloud
|
||||
flake: sso
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v20
|
||||
|
||||
- name: Build ${{ matrix.demo.name }} .#${{ matrix.demo.flake }}
|
||||
run: |
|
||||
cd demo/${{ matrix.demo.name }}
|
||||
nix \
|
||||
--print-build-logs \
|
||||
--option keep-going true \
|
||||
--show-trace \
|
||||
build .#nixosConfigurations.${{ matrix.demo.flake }}.config.system.build.vm
|
||||
|
||||
|
Loading…
Reference in a new issue