Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 81d661f

Browse files
committed
bump xargo version, and tweak xargo caching
1 parent 47771d6 commit 81d661f

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ jobs:
5757
# contains package information of crates installed via `cargo install`.
5858
~/.cargo/.crates.toml
5959
~/.cargo/.crates2.json
60-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-xargo0.3.25
60+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', 'cargo-miri/version.rs') }}
6161
restore-keys: ${{ runner.os }}-cargo
6262

6363
- name: Install rustup-toolchain-install-master and xargo
6464
shell: bash
6565
run: |
6666
cargo install rustup-toolchain-install-master
67-
cargo install xargo
67+
# Only install xargo if we don't have it cached
68+
if ! which xargo; then cargo install xargo; fi
6869
6970
- name: Install "master" toolchain
7071
shell: bash

cargo-miri/bin.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
mod version;
2+
13
use std::env;
24
use std::ffi::{OsStr, OsString};
35
use std::fmt::Write as _;
@@ -9,10 +11,9 @@ use std::path::{Path, PathBuf};
911
use std::process::{self, Command};
1012

1113
use serde::{Deserialize, Serialize};
12-
1314
use rustc_version::VersionMeta;
1415

15-
const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 23);
16+
use version::*;
1617

1718
const CARGO_MIRI_HELP: &str = r#"Runs binary crates and tests in Miri
1819

cargo-miri/version.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// We put this in a separate file so that it can be hashed for GHA caching.
2+
pub const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 26);

0 commit comments

Comments
 (0)