Skip to content

Commit 4dcf424

Browse files
authored
Merge pull request #91 from rex-rs/ci
- ci: new nix flake auto-update actions Signed-off-by: Jinghao Jia <jinghao7@illinois.edu>
2 parents 039cfef + afc23cb commit 4dcf424

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.github/workflows/memcached_benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
name: devenv
4747
- name: Install devenv.sh
48-
run: nix profile install nixpkgs#devenv
48+
run: nix profile add nixpkgs#devenv
4949

5050
- name: Build the devenv shell and run any pre-commit hooks
5151
run: devenv test

.github/workflows/update-nix.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Update Nix Dependencies
2+
on:
3+
workflow_dispatch:
4+
# push:
5+
# branches: [ ci ] # for testing
6+
schedule:
7+
- cron: '0 0 * * 1' # Monday morning at 00:00 UTC
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
update-nix:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Install Nix
23+
uses: DeterminateSystems/nix-installer-action@main
24+
25+
- uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16
26+
with:
27+
name: devenv
28+
- name: Install devenv.sh
29+
run: nix profile add nixpkgs#devenv
30+
31+
- name: Update tools/memcached_benchmark/devenv.lock
32+
run: |
33+
cd tools/memcached_benchmark
34+
devenv update
35+
36+
- name: Update root flake.lock
37+
uses: DeterminateSystems/update-flake-lock@main
38+
with:
39+
pr-title: "nix-flake: update nix dependencies"
40+
pr-labels: |
41+
dependencies
42+
nix
43+
pr-body: |
44+
Automated update of Nix dependencies:
45+
- Root `flake.lock` updated
46+
- `tools/memcached_benchmark/devenv.lock` updated

0 commit comments

Comments
 (0)