ci: pin rust to nightly-2024-09-09 until public-api fixed

The public-api (cargo xtask public-api) is failing with the latest rust
nightly package. Temporarily pin nightly to last known working version
until the issue can be resolved.

Signed-off-by: Billy McFall <22157057+Billy99@users.noreply.github.com>
pull/1028/head
Billy McFall 2 months ago
parent 2cd35769dc
commit 6f2047f96c

@ -25,7 +25,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: nightly toolchain: nightly-2024-09-09
components: rustfmt, clippy, miri, rust-src components: rustfmt, clippy, miri, rust-src
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
@ -55,7 +55,7 @@ jobs:
- name: Run miri - name: Run miri
run: | run: |
set -euxo pipefail set -euxo pipefail
cargo hack miri test --all-targets --feature-powerset \ cargo +nightly-2024-09-09 hack miri test --all-targets --feature-powerset \
--exclude aya-ebpf \ --exclude aya-ebpf \
--exclude aya-ebpf-bindings \ --exclude aya-ebpf-bindings \
--exclude aya-log-ebpf \ --exclude aya-log-ebpf \
@ -149,7 +149,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: nightly toolchain: nightly-2024-09-09
components: rust-src components: rust-src
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
@ -243,7 +243,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: nightly toolchain: nightly-2024-09-09
components: rust-src components: rust-src
targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl targets: aarch64-unknown-linux-musl,x86_64-unknown-linux-musl

@ -21,7 +21,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: nightly toolchain: nightly-2024-09-09
components: rustfmt, clippy components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly" channel = "nightly-2024-09-09"

@ -1,3 +1,3 @@
[build] [build]
publish = "site" 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"

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly" channel = "nightly-2024-09-09"

@ -44,7 +44,7 @@ pub fn docs(metadata: Metadata) -> Result<()> {
Command::new("cargo") Command::new("cargo")
.current_dir(&workspace_root) .current_dir(&workspace_root)
.env("RUSTDOCFLAGS", rustdocflags) .env("RUSTDOCFLAGS", rustdocflags)
.args(["+nightly", "doc", "--no-deps", "--all-features"]) .args(["+nightly-2024-09-09", "doc", "--no-deps", "--all-features"])
.args( .args(
PACKAGE_TO_DESCRIPTION PACKAGE_TO_DESCRIPTION
.iter() .iter()

@ -24,7 +24,7 @@ pub struct Options {
} }
pub fn public_api(options: Options, metadata: Metadata) -> Result<()> { pub fn public_api(options: Options, metadata: Metadata) -> Result<()> {
let toolchain = "nightly"; let toolchain = "nightly-2024-09-09";
let Options { bless, target } = options; let Options { bless, target } = options;
if !rustup_toolchain::is_installed(toolchain)? { if !rustup_toolchain::is_installed(toolchain)? {

Loading…
Cancel
Save