workflows: update cargo as well (#32)
update both the nix flake and cargo packages
This commit is contained in:
parent
5c1e2354ba
commit
887de01b8d
1 changed files with 15 additions and 5 deletions
|
|
@ -1,21 +1,31 @@
|
||||||
name: update-flake-lock
|
name: update dependencies
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # allows manual triggering
|
workflow_dispatch: # allows manual triggering
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * *' # at 04:00 every day
|
- cron: '0 4 * * *' # at 04:00 every day
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lockfile:
|
cargo:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- run: nix shell nixpkgs#cargo --command cargo update
|
||||||
|
|
||||||
|
flake:
|
||||||
|
runs-on: self-hosted
|
||||||
|
needs: cargo
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- run: nix flake update
|
||||||
- name: Check flake
|
- name: Check flake
|
||||||
uses: DeterminateSystems/flake-checker-action@main
|
uses: DeterminateSystems/flake-checker-action@main
|
||||||
|
- run: nix build
|
||||||
- name: Update Nix Flake Lock
|
- name: Update Nix Flake Lock
|
||||||
uses: DeterminateSystems/update-flake-lock@main
|
uses: DeterminateSystems/update-flake-lock@main
|
||||||
with:
|
with:
|
||||||
pr-title: "flake: update flake.lock"
|
pr-title: "flake: update flake.lock"
|
||||||
pr-reviewers: itepastra
|
pr-labels: |
|
||||||
- run: nix build
|
dependencies
|
||||||
- run: nix flake check
|
automated
|
||||||
Loading…
Add table
Add a link
Reference in a new issue