This commit is contained in:
Andrea Ciceri 2022-09-30 19:22:47 +02:00
parent 96d55a3648
commit 506ad29fe3
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
4 changed files with 20 additions and 55 deletions

28
.github/update.yaml vendored
View file

@ -1,28 +0,0 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 2 * * *' # running daily at 02:00 AM
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v14
with:
pr-title: "Automatic `flake.lock` update"
pr-labels: |
flake-inputs
automatic
token: ${{ secrets.PR_UPDATE_FLAKE_TOKEN }} # to open the PR using my GitHub account, needed to trigger the `build` workflow

View file

@ -1,23 +0,0 @@
name: build-thinkpad
on:
workflow_dispatch: # allows manual triggering
push:
branches:
- master
- update_flake_lock_action
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --print-build-logs --verbose build --allow-import-from-derivation --keep-going .#nixosConfigurations.thinkpad.config.system.build.toplevel

View file

@ -1,4 +1,4 @@
name: nix-check
name: build
on:
workflow_dispatch: # allows manual triggering
push:
@ -7,7 +7,7 @@ on:
- update_flake_lock_action
jobs:
lockfile:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@ -21,3 +21,19 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --print-build-logs --verbose flake check --allow-import-from-derivation --keep-going
build-thinkpad:
if: ${{ always() }}
needs: check
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --print-build-logs --verbose build --allow-import-from-derivation .#nixosConfigurations.thinkpad.config.system.build.toplevel

View file

@ -5,7 +5,7 @@ on:
- cron: '0 2 * * *' # running daily at 02:00 AM
jobs:
lockfile:
update-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@ -13,7 +13,7 @@ jobs:
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@vXX
- uses: cachix/cachix-action@v10
with:
name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'