[WIP] CI
This commit is contained in:
parent
55d258382d
commit
96d55a3648
3 changed files with 52 additions and 1 deletions
28
.github/update.yaml
vendored
Normal file
28
.github/update.yaml
vendored
Normal 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
23
.github/workflows/build-thinkpad.yaml
vendored
Normal 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
|
2
.github/workflows/check.yaml
vendored
2
.github/workflows/check.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue