bump xargo version, and tweak xargo caching

This commit is contained in:
Ralf Jung 2022-06-01 06:28:27 -04:00
parent 47771d6b78
commit 81d661f134
3 changed files with 8 additions and 4 deletions

View file

@ -57,14 +57,15 @@ jobs:
# contains package information of crates installed via `cargo install`.
~/.cargo/.crates.toml
~/.cargo/.crates2.json
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-xargo0.3.25
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', 'cargo-miri/version.rs') }}
restore-keys: ${{ runner.os }}-cargo
- name: Install rustup-toolchain-install-master and xargo
shell: bash
run: |
cargo install rustup-toolchain-install-master
cargo install xargo
# Only install xargo if we don't have it cached
if ! which xargo; then cargo install xargo; fi
- name: Install "master" toolchain
shell: bash

View file

@ -1,3 +1,5 @@
mod version;
use std::env;
use std::ffi::{OsStr, OsString};
use std::fmt::Write as _;
@ -9,10 +11,9 @@ use std::path::{Path, PathBuf};
use std::process::{self, Command};
use serde::{Deserialize, Serialize};
use rustc_version::VersionMeta;
const XARGO_MIN_VERSION: (u32, u32, u32) = (0, 3, 23);
use version::*;
const CARGO_MIRI_HELP: &str = r#"Runs binary crates and tests in Miri

2
cargo-miri/version.rs Normal file
View file

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