This commit is contained in:
Andrea Ciceri 2022-09-30 17:58:10 +02:00
parent 55d258382d
commit 96d55a3648
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
3 changed files with 52 additions and 1 deletions

28
.github/update.yaml vendored Normal file
View file

@ -0,0 +1,28 @@
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

23
.github/workflows/build-thinkpad.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
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

@ -20,4 +20,4 @@ jobs:
name: aciceri-fleet
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix check -Lv
- run: nix --print-build-logs --verbose flake check --allow-import-from-derivation --keep-going