diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e21cff5f..1bd3ab005 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly + toolchain: nightly-2024-09-09 components: rustfmt, clippy, miri, rust-src - uses: Swatinem/rust-cache@v2 @@ -56,6 +56,7 @@ jobs: run: | set -euxo pipefail cargo hack miri test --all-targets --feature-powerset \ + --rust-version --exclude aya-ebpf \ --exclude aya-ebpf-bindings \ --exclude aya-log-ebpf \ @@ -149,7 +150,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly + toolchain: nightly-2024-09-09 components: rust-src - uses: Swatinem/rust-cache@v2 @@ -243,7 +244,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly + toolchain: nightly-2024-09-09 components: rust-src targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl diff --git a/.github/workflows/gen.yml b/.github/workflows/gen.yml index 3f15e0e1f..665f8052e 100644 --- a/.github/workflows/gen.yml +++ b/.github/workflows/gen.yml @@ -21,7 +21,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly + toolchain: nightly-2024-09-09 components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 diff --git a/aya-obj/Cargo.toml b/aya-obj/Cargo.toml index e18972baa..be0b27d1e 100644 --- a/aya-obj/Cargo.toml +++ b/aya-obj/Cargo.toml @@ -10,6 +10,7 @@ license.workspace = true repository.workspace = true homepage.workspace = true edition.workspace = true +rust-version = 1.83.0-nightly [dependencies] bytes = { workspace = true } diff --git a/ebpf/rust-toolchain.toml b/ebpf/rust-toolchain.toml index 5d56faf9a..b2a53a7cc 100644 --- a/ebpf/rust-toolchain.toml +++ b/ebpf/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly" +channel = "nightly-2024-09-09" diff --git a/netlify.toml b/netlify.toml index 178413df8..7738c238b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] publish = "site" -command = "rustup toolchain install nightly -c rust-src && cargo xtask docs" +command = "rustup toolchain install nightly-2024-09-09 -c rust-src && cargo xtask docs" diff --git a/test/integration-ebpf/rust-toolchain.toml b/test/integration-ebpf/rust-toolchain.toml index 5d56faf9a..b2a53a7cc 100644 --- a/test/integration-ebpf/rust-toolchain.toml +++ b/test/integration-ebpf/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly" +channel = "nightly-2024-09-09" diff --git a/xtask/src/docs.rs b/xtask/src/docs.rs index df4f7170f..3ea6f11fe 100644 --- a/xtask/src/docs.rs +++ b/xtask/src/docs.rs @@ -44,7 +44,7 @@ pub fn docs(metadata: Metadata) -> Result<()> { Command::new("cargo") .current_dir(&workspace_root) .env("RUSTDOCFLAGS", rustdocflags) - .args(["+nightly", "doc", "--no-deps", "--all-features"]) + .args(["+nightly-2024-09-09", "doc", "--no-deps", "--all-features"]) .args( PACKAGE_TO_DESCRIPTION .iter() diff --git a/xtask/src/public_api.rs b/xtask/src/public_api.rs index ac11ee184..7aedaa551 100644 --- a/xtask/src/public_api.rs +++ b/xtask/src/public_api.rs @@ -24,7 +24,7 @@ pub struct Options { } pub fn public_api(options: Options, metadata: Metadata) -> Result<()> { - let toolchain = "nightly"; + let toolchain = "nightly-2024-09-09"; let Options { bless, target } = options; if !rustup_toolchain::is_installed(toolchain)? {