Skip to content

Commit 052d958

Browse files
authored
ci: monthly Cranelift release branch automation regex (#1665)
1 parent 604d40f commit 052d958

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/cranelift-release-branch.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
3939
- name: Patch Cargo.toml to use release branch Cranelift
4040
run: |
41+
sed -i -E '/cranelift-/s/"0\.[0-9]+\.0"/"*"/g' Cargo.toml
42+
4143
cat >>Cargo.toml <<EOF
4244
[patch.crates-io]
4345
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
@@ -47,7 +49,8 @@ jobs:
4749
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
4850
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "$(echo $WASMTIME_RELEASE_BRANCH)" }
4951
EOF
50-
cargo check -p rustc-hash # update lockfile
52+
53+
cargo update
5154
env:
5255
WASMTIME_RELEASE_BRANCH: ${{ steps.wasmtime_release_branch.outputs.branch }}
5356

0 commit comments

Comments
 (0)