2024-08-15 07:13:00 +02:00
|
|
|
name: Demo
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
2024-10-26 17:03:04 +02:00
|
|
|
paths:
|
2024-08-17 00:20:45 +02:00
|
|
|
- 'demo/**'
|
2024-08-15 07:49:01 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-10-26 17:03:04 +02:00
|
|
|
paths:
|
|
|
|
- 'demo/**'
|
2024-08-15 07:13:00 +02:00
|
|
|
|
|
|
|
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
|
2024-08-15 08:57:57 +02:00
|
|
|
uses: actions/checkout@v4
|
2024-08-15 07:13:00 +02:00
|
|
|
|
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v20
|
|
|
|
|
2024-08-15 08:57:57 +02:00
|
|
|
- uses: cachix/cachix-action@v14
|
|
|
|
with:
|
|
|
|
name: mycache
|
|
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
|
2024-08-15 07:13:00 +02:00
|
|
|
- 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
|
|
|
|
|
|
|
|
|