Skip to content

Commit 442dc68

Browse files
chore: bump toolchain for release (#441)
1 parent 1298876 commit 442dc68

File tree

8 files changed

+12
-43
lines changed

8 files changed

+12
-43
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
if: ${{ !contains(fromJSON('["eclipse-zenoh/zenoh", "eclipse-zenoh/zenoh-pico", "eclipse-zenoh/zenoh-cpp", "eclipse-zenoh/zenoh-dissector"]'), matrix.repo) }}
5050
uses: actions-rust-lang/setup-rust-toolchain@v1
5151
with:
52-
toolchain: 1.75.0
52+
toolchain: 1.93.0
5353

5454
- name: Install dependencies for zenoh-dissector
5555
if: ${{ matrix.repo == 'eclipse-zenoh/zenoh-dissector' }}
@@ -68,7 +68,7 @@ jobs:
6868
release-branch: release/${{ inputs.version }}
6969
repo: ${{ matrix.repo }}
7070
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }}
71-
toolchain: 1.85.0
71+
toolchain: 1.93.0
7272
deps-pattern: zenoh.*
7373
deps-git-url: https://github.com/eclipse-zenoh/zenoh.git
7474
deps-branch: main

.github/workflows/recreate-lockfile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
required: false
1212
toolchain:
1313
type: string
14-
description: The rust toolchain to use. Defaults to 1.75.0
14+
description: The rust toolchain to use. Defaults to 1.93.0
1515
required: false
1616

1717
defaults:
@@ -41,8 +41,8 @@ jobs:
4141
# NOTE: Showing the active Rust toolchain (defined by the rust-toolchain.toml file)
4242
# will have the side effect of installing it; if it's not installed already.
4343
run: |
44-
rustup update ${{ inputs.toolchain || '1.75.0' }}
45-
rustup component add --toolchain ${{ inputs.toolchain || '1.75.0'}} clippy
44+
rustup update ${{ inputs.toolchain || '1.93.0' }}
45+
rustup component add --toolchain ${{ inputs.toolchain || '1.93.0'}} clippy
4646
4747
# cyclors does not compile with cmake 4
4848
- name: Install cmake
@@ -56,7 +56,7 @@ jobs:
5656
- name: Recreate Cargo.lock
5757
run: |
5858
rm -f Cargo.lock
59-
cargo +${{ inputs.toolchain || '1.75.0' }} update --manifest-path Cargo.toml
59+
cargo +${{ inputs.toolchain || '1.93.0' }} update --manifest-path Cargo.toml
6060
6161
- name: Create/Update a pull request if the lockfile changed
6262
id: cpr

dist/bump-crates-main.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63661,8 +63661,7 @@ function setup() {
6366163661
branch,
6366263662
repo,
6366363663
path: path === "" ? void 0 : path,
63664-
toolchain: toolchain === "" ? "1.75.0" : toolchain,
63665-
// Default to 1.75.0 to avoid updating Cargo.lock file version.
63664+
toolchain: toolchain === "" ? "1.93.0" : toolchain,
6366663665
tag,
6366763666
githubToken,
6366863667
bumpDepsPattern,

dist/set-git-branch-main.mjs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63553,15 +63553,6 @@ async function setGitBranch(manifestPath, pattern, gitUrl, gitBranch) {
6355363553
}
6355463554
}
6355563555
}
63556-
function setCargoLockVersion(cargoLockPath) {
63557-
core2.startGroup(`Setting Cargo.lock version`);
63558-
const record = toml.get(cargoLockPath, ["version"]);
63559-
if (record != void 0 && record["version"] != 3) {
63560-
const sedCommand = `sed -i.bak 's/^version = [[:digit:]]$/version = 3/' ${cargoLockPath}`;
63561-
sh(sedCommand);
63562-
sh(`rm -f ${cargoLockPath}.bak`);
63563-
}
63564-
}
6356563556
async function installBinaryCached(name) {
6356663557
const env = { CARGO_REGISTRY_DEFAULT: "crates-io" };
6356763558
const version2 = config.lock.cratesio[name];
@@ -63595,8 +63586,7 @@ function setup() {
6359563586
releaseBranch,
6359663587
repo,
6359763588
path: path === "" ? void 0 : path,
63598-
toolchain: toolchain === "" ? "1.75.0" : toolchain,
63599-
// Default to 1.75.0 to avoid updating Cargo.lock file version.
63589+
toolchain: toolchain === "" ? "1.93.0" : toolchain,
6360063590
githubToken,
6360163591
githubUser: githubUser === "" ? "eclipse-zenoh-bot" : githubUser,
6360263592
depsRegExp: depsPattern === "" ? void 0 : new RegExp(depsPattern),
@@ -63612,14 +63602,6 @@ async function main(input) {
6361263602
sh(`git clone --recursive --single-branch --branch ${input.releaseBranch} ${remote}`);
6361363603
sh(`git switch -c ${input.githubUser}/post-release-${input.version}`, { cwd: repo });
6361463604
sh(`ls ${workspace}`);
63615-
const cargoLockPaths = sh(`find ${workspace} -name "Cargo.lock"`).split("\n").filter((r) => r);
63616-
for (const path2 of cargoLockPaths) {
63617-
setCargoLockVersion(path2);
63618-
if (sh("git diff", { cwd: repo, check: false })) {
63619-
sh("find . -name 'Cargo.lock' | xargs git add", { cwd: repo });
63620-
sh(`git commit --message 'chore: Update Cargo.lock version ${path2}'`, { cwd: repo, env: gitEnv });
63621-
}
63622-
}
6362363605
const cargoPaths = sh(`find ${workspace} -name "Cargo.toml*"`).split("\n").filter((r) => r);
6362463606
const pathsToCheck = [];
6362563607
let path;

dist/set-registry-main.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63575,8 +63575,7 @@ function setup() {
6357563575
releaseBranch,
6357663576
repo,
6357763577
path: path === "" ? void 0 : path,
63578-
toolchain: toolchain === "" ? "1.75.0" : toolchain,
63579-
// Default to 1.75.0 to avoid updating Cargo.lock file version.
63578+
toolchain: toolchain === "" ? "1.93.0" : toolchain,
6358063579
githubToken,
6358163580
depsRegExp: depsPattern === "" ? new RegExp("$^") : new RegExp(depsPattern)
6358263581
};

src/bump-crates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function setup(): Input {
5959
branch,
6060
repo,
6161
path: path === "" ? undefined : path,
62-
toolchain: toolchain === "" ? "1.75.0" : toolchain, // Default to 1.75.0 to avoid updating Cargo.lock file version.
62+
toolchain: toolchain === "" ? "1.93.0" : toolchain,
6363
tag,
6464
githubToken,
6565
bumpDepsPattern,

src/set-git-branch.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function setup(): Input {
3737
releaseBranch,
3838
repo,
3939
path: path === "" ? undefined : path,
40-
toolchain: toolchain === "" ? "1.75.0" : toolchain, // Default to 1.75.0 to avoid updating Cargo.lock file version.
40+
toolchain: toolchain === "" ? "1.93.0" : toolchain,
4141
githubToken,
4242
githubUser: githubUser === "" ? "eclipse-zenoh-bot" : githubUser,
4343
depsRegExp: depsPattern === "" ? undefined : new RegExp(depsPattern),
@@ -55,17 +55,6 @@ export async function main(input: Input) {
5555
sh(`git clone --recursive --single-branch --branch ${input.releaseBranch} ${remote}`);
5656
sh(`git switch -c ${input.githubUser}/post-release-${input.version}`, { cwd: repo });
5757
sh(`ls ${workspace}`);
58-
// Correct Cargo.lock version to 1.75 toolchain compatible version
59-
const cargoLockPaths = sh(`find ${workspace} -name "Cargo.lock"`)
60-
.split("\n")
61-
.filter(r => r);
62-
for (const path of cargoLockPaths) {
63-
cargo.setCargoLockVersion(path);
64-
if (sh("git diff", { cwd: repo, check: false })) {
65-
sh("find . -name 'Cargo.lock' | xargs git add", { cwd: repo });
66-
sh(`git commit --message 'chore: Update Cargo.lock version ${path}'`, { cwd: repo, env: gitEnv });
67-
}
68-
}
6958
// find all Cargo.toml files in the workspace, filtering out the empty string from the array
7059
const cargoPaths = sh(`find ${workspace} -name "Cargo.toml*"`)
7160
.split("\n")

src/set-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function setup(): Input {
4343
releaseBranch,
4444
repo,
4545
path: path === "" ? undefined : path,
46-
toolchain: toolchain === "" ? "1.75.0" : toolchain, // Default to 1.75.0 to avoid updating Cargo.lock file version.
46+
toolchain: toolchain === "" ? "1.93.0" : toolchain,
4747
githubToken,
4848
depsRegExp: depsPattern === "" ? new RegExp("$^") : new RegExp(depsPattern),
4949
};

0 commit comments

Comments
 (0)