Skip to content

Commit d4521c1

Browse files
committed
add uv2nix and pyproject-build-systems to update-version.yml
1 parent 15eb15f commit d4521c1

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/update-version.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
- '_update-deps/runtimeverification/blockchain-k-plugin'
66
- '_update-deps/runtimeverification/k'
77
- '_update-deps/runtimeverification/rv-nix-tools'
8+
- '_update-deps-cron/uv2nix'
9+
- '_update-deps-cron/pyproject-build-systems'
810
workflow_dispatch:
911
# Stop in progress workflows on the same branch and same workflow to use latest committed code
1012
concurrency:
@@ -29,7 +31,12 @@ jobs:
2931
- name: 'Get uv release'
3032
id: uv_release
3133
run: |
32-
echo uv_version=$(cat deps/uv_release) >> "${GITHUB_OUTPUT}"
34+
UV2NIX_VERSION=$(cat deps/uv2nix)
35+
UV_VERSION=$(curl -s https://raw.githubusercontent.com/pyproject-nix/uv2nix/$(cat deps/uv2nix)/pkgs/uv-bin/srcs.json | jq -r .version)
36+
[[ "${UV_VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
37+
echo ${UV_VERSION} > deps/uv_release
38+
git add deps/uv_release && git commit -m "Sync uv version: uv ${UV_VERSION}" || true
39+
echo uv_version=${UV_VERSION} >> "${GITHUB_OUTPUT}"
3340
- name: 'Install uv'
3441
uses: astral-sh/setup-uv@v6
3542
with:
@@ -59,9 +66,13 @@ jobs:
5966
run: |
6067
K_VERSION=v$(cat deps/k_release)
6168
BKP_VERSION=$(cat deps/blockchain-k-plugin_release)
69+
UV2NIX_VERSION=$(cat deps/uv2nix)
70+
PYPROJECT_BUILD_SYSTEMS_VERSION=$(cat deps/pyproject-build-systems)
6271
RV_NIX_TOOLS_VERSION=$(cat deps/rv-nix-tools)
6372
sed -i 's! k-framework.url = "github:runtimeverification/k/[v0-9\.]*"! k-framework.url = "github:runtimeverification/k/'"${K_VERSION}"'"!' flake.nix
6473
sed -i 's! "github:runtimeverification/blockchain-k-plugin/[0-9a-f]*"! "github:runtimeverification/blockchain-k-plugin/'"${BKP_VERSION}"'"!' flake.nix
74+
sed -i 's! uv2nix.url = "github:pyproject-nix/uv2nix/[a-z0-9\.]*"! uv2nix.url = "github:pyproject-nix/uv2nix/'"${UV2NIX_VERSION}"'"!' flake.nix
75+
sed -i 's! pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/[a-z0-9\.]*"! pyproject-build-systems.url = "github:pyproject-nix/build-system-pkgs/'"${PYPROJECT_BUILD_SYSTEMS_VERSION}"'"!' flake.nix
6576
sed -i 's! rv-nix-tools.url = "github:runtimeverification/rv-nix-tools/[a-z0-9\.]*"! rv-nix-tools.url = "github:runtimeverification/rv-nix-tools/'"${RV_NIX_TOOLS_VERSION}"'"!' flake.nix
6677
nix run .#update-from-submodules
6778
nix flake update

deps/pyproject-build-systems

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7dba6dbc73120e15b558754c26024f6c93015dd7

deps/uv2nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
680e2f8e637bc79b84268949d2f2b2f5e5f1d81c

0 commit comments

Comments
 (0)