Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 30. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cachix/install-nix-action/releases">cachix/install-nix-action's releases</a>.</em></p> <blockquote> <h2>v30</h2> <ul> <li>Nix: 2.24.7 -> 2.24.9, fixing <a href="https://github.com/NixOS/nix/security/advisories/GHSA-6fjr-mq49-mm2c">GHSA-6fjr-mq49-mm2c</a></li> </ul> <h2>v29</h2> <p>Bumps Nix to <a href="https://nix.dev/manual/nix/2.24/release-notes/rl-2.24">2.24.7</a></p> <h2>v28</h2> <p>Nix 2.24.6 - <a href="https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493">https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493</a></p> <h2>v27</h2> <h2>What's Changed</h2> <ul> <li>Enable <code>always-allow-substitutes</code> by default by <a href="https://github.com/sandydoo"><code>@sandydoo</code></a> in <a href="https://redirect.github.com/cachix/install-nix-action/pull/207">cachix/install-nix-action#207</a></li> <li>nix: 2.20.5 -> 2.22.1 by <a href="https://github.com/kashw2"><code>@kashw2</code></a> in <a href="https://redirect.github.com/cachix/install-nix-action/pull/206">cachix/install-nix-action#206</a></li> <li>ci: fix tests by <a href="https://github.com/sandydoo"><code>@sandydoo</code></a> in <a href="https://redirect.github.com/cachix/install-nix-action/pull/208">cachix/install-nix-action#208</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/kashw2"><code>@kashw2</code></a> made their first contribution in <a href="https://redirect.github.com/cachix/install-nix-action/pull/206">cachix/install-nix-action#206</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/cachix/install-nix-action/compare/v26...V27">https://github.com/cachix/install-nix-action/compare/v26...V27</a></p> <h2>v26</h2> <p>Bump to Nix 2.20.5 to address CVE-2024-27297 / GHSA-2ffj-w4mj-pg37.</p> <h2>install-nix-action-v25</h2> <p>Nix 2.19.2</p> <h2>install-nix-action-v24</h2> <ul> <li>Nix 2.19.1</li> <li>enables KVM on linux</li> <li>set <code>TMPDIR</code> to avoid potential disk space issues</li> <li>don't use the default GitHub token for Enterprise</li> </ul> <h2>install-nix-action-v23</h2> <ul> <li>always show Nix trace</li> <li>Nix 2.17</li> </ul> <h2>install-nix-action-v22</h2> <ul> <li>Nix 2.16.1</li> <li>Fix issues with System Integrity Protection when using macos-12</li> </ul> <h2>install-nix-action-v21</h2> <ul> <li>pin Nix to 2.15.1 (recent releases broke too many things)</li> <li>fix the action to work on custom containers</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="08dcb3a5e6"><code>08dcb3a</code></a> Merge pull request <a href="https://redirect.github.com/cachix/install-nix-action/issues/217">#217</a> from Enzime/bump</li> <li><a href="4204e15198"><code>4204e15</code></a> nix: 2.24.8 -> 2.24.9</li> <li><a href="6a10e2e9fd"><code>6a10e2e</code></a> Merge pull request <a href="https://redirect.github.com/cachix/install-nix-action/issues/216">#216</a> from Mic92/nix-bump</li> <li><a href="2bb614e91a"><code>2bb614e</code></a> Nix: 2.24.7 -> 2.24.8</li> <li><a href="9f70348d77"><code>9f70348</code></a> Merge pull request <a href="https://redirect.github.com/cachix/install-nix-action/issues/215">#215</a> from Mic92/nix-bump</li> <li><a href="4f91dc2b65"><code>4f91dc2</code></a> Nix: 2.24.6 -> 2.24.7</li> <li><a href="3715ab1a11"><code>3715ab1</code></a> bump channel</li> <li><a href="1872f1ff9d"><code>1872f1f</code></a> Nix: 2.22.1 -> 2.24.6</li> <li><a href="e268b7aa05"><code>e268b7a</code></a> Merge pull request <a href="https://redirect.github.com/cachix/install-nix-action/issues/213">#213</a> from phaer/patch-1</li> <li><a href="5b8c65d4d7"><code>5b8c65d</code></a> Update README: hardware accel is available now...</li> <li>Additional commits viewable in <a href="https://github.com/cachix/install-nix-action/compare/v20...v30">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
name: Demo
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
path-filter:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
changed: ${{ steps.filter.outputs.changed }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: dorny/paths-filter@v3
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
changed:
|
|
- '.github/workflows/demo.yml'
|
|
- 'demo/**'
|
|
|
|
build:
|
|
needs: [ "path-filter" ]
|
|
if: needs.path-filter.outputs.changed == 'true'
|
|
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@v4
|
|
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v30
|
|
|
|
- uses: cachix/cachix-action@v14
|
|
with:
|
|
name: selfhostblocks
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- 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
|
|
|
|
result:
|
|
runs-on: ubuntu-latest
|
|
needs: [ "build" ]
|
|
if: '!cancelled()'
|
|
steps:
|
|
- run: |
|
|
result="${{ needs.build.result }}"
|
|
if [[ $result == "success" || $result == "skipped" ]]; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|