Skip to content

Commit 7a9f46b

Browse files
authored
Remove nightly from CI. (#3232)
* stable ci * fixer * aa * no -z flag * doc * ?? * this one needs * nightly for some of them .. * turn off fail fast for now 🥱 * aaa * afasdfasfas * mm * tmate * linker's fault * fixer * f * dfsafdasfasf
1 parent 8c0ee04 commit 7a9f46b

File tree

38 files changed

+173
-497
lines changed

38 files changed

+173
-497
lines changed

.github/workflows/build_and_test.yml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ jobs:
3939
# => https://github.com/Michael-F-Bryan/mdbook-linkcheck/pull/82#issuecomment-2241058491
4040
git: https://github.com/Michael-F-Bryan/mdbook-linkcheck.git
4141
rev: 8c783c5d754d83bcd50c28fb4174854b04ece990
42-
- name: default nightly
43-
run: rustup default nightly
4442
- uses: actions/checkout@v4
4543
- if: runner.os == 'Linux'
4644
uses: ./.github/workflows/ubuntu-prepare
@@ -88,7 +86,7 @@ jobs:
8886
- uses: Swatinem/rust-cache@v2
8987
# ---- doc check ----
9088
- name: Build Docs
91-
run: RUSTFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps
89+
run: cargo doc --all-features --no-deps
9290

9391
ubuntu-doc-test:
9492
runs-on: ubuntu-24.04
@@ -98,20 +96,20 @@ jobs:
9896
- uses: Swatinem/rust-cache@v2
9997
# ---- doc check ----
10098
- name: Test Docs
101-
run: RUSTFLAGS="--cfg docsrs" cargo +nightly test --doc --all-features
99+
run: cargo test --doc --all-features
102100

103101
ubuntu-miri:
104102
runs-on: ubuntu-24.04
105103
if: contains( github.event.pull_request.labels.*.name, 'pre-release')
106104
steps:
107-
- name: Add nightly clippy
108-
run: rustup toolchain install nightly --component miri --allow-downgrade
105+
- name: Add miri
106+
run: rustup toolchain install --component miri --allow-downgrade
109107
- uses: actions/checkout@v4
110108
- uses: ./.github/workflows/ubuntu-prepare
111109
- uses: Swatinem/rust-cache@v2
112110
# --- miri undefined behavior test --
113111
- name: Run miri tests
114-
run: RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test
112+
run: RUST_BACKTRACE=1 MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test
115113

116114
ubuntu:
117115
runs-on: ubuntu-24.04
@@ -142,8 +140,6 @@ jobs:
142140
steps:
143141
- name: Remove Dotnet & Haskell
144142
run: rm -rf /usr/share/dotnet && rm -rf /opt/ghc
145-
- name: Add nightly clippy
146-
run: rustup toolchain install nightly --component clippy --allow-downgrade && rustup default nightly
147143
- uses: actions/checkout@v4
148144
- uses: ./.github/workflows/ubuntu-prepare
149145
- uses: Swatinem/rust-cache@v2
@@ -153,7 +149,7 @@ jobs:
153149
# --- test embedding the libafl_libfuzzer_runtime library
154150
# Fix me plz
155151
# - name: Test Build libafl_libfuzzer with embed
156-
# run: cargo +nightly test --features=embed-runtime --manifest-path libafl_libfuzzer/Cargo.toml
152+
# run: cargo test --features=embed-runtime --manifest-path libafl_libfuzzer/Cargo.toml
157153

158154
ubuntu-check:
159155
runs-on: ubuntu-24.04
@@ -209,9 +205,6 @@ jobs:
209205
steps:
210206
- uses: actions/checkout@v4
211207
- uses: ./.github/workflows/ubuntu-prepare
212-
- name: Add rustfmt nightly
213-
shell: bash
214-
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
215208
- uses: Swatinem/rust-cache@v2
216209
with: { shared-key: "ubuntu" }
217210
- name: Installing black
@@ -250,6 +243,7 @@ jobs:
250243
needs:
251244
- fuzzers-preflight
252245
strategy:
246+
fail-fast: false
253247
matrix:
254248
os: [ ubuntu-24.04 ]
255249
fuzzer:
@@ -431,14 +425,11 @@ jobs:
431425
steps:
432426
- uses: actions/checkout@v4
433427
- uses: ./.github/workflows/ubuntu-prepare
434-
- name: Add rustfmt nightly
435-
shell: bash
436-
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
437428
- name: Install deps
438429
run: sudo apt-get update && sudo apt-get install -y g++-powerpc-linux-gnu gcc-powerpc-linux-gnu gdb-multiarch
439430
- name: Add rust targets
440431
shell: bash
441-
run: rustup target add --toolchain nightly-x86_64-unknown-linux-gnu powerpc-unknown-linux-gnu
432+
run: rustup target add --toolchain stable-x86_64-unknown-linux-gnu powerpc-unknown-linux-gnu
442433
- name: Build and run utils (Linux)
443434
if: runner.os == 'Linux'
444435
shell: bash
@@ -457,6 +448,7 @@ jobs:
457448
shell: bash
458449
run: |
459450
RUN_ON_CI=1 \
451+
RUSTC_BOOTSTRAP=1 \
460452
LLVM_CONFIG=llvm-config-${{env.MAIN_LLVM_VERSION}} \
461453
just \
462454
-f ./libafl_qemu/librasan/Justfile \
@@ -476,6 +468,7 @@ jobs:
476468
shell: bash
477469
run: |
478470
RUN_ON_CI=1 \
471+
RUSTC_BOOTSTRAP=1 \
479472
LLVM_CONFIG=llvm-config-${{env.MAIN_LLVM_VERSION}} \
480473
just \
481474
-f ./libafl_qemu/librasan/Justfile \
@@ -515,9 +508,9 @@ jobs:
515508
- uses: actions/checkout@v4
516509
- uses: Swatinem/rust-cache@v2
517510
- name: Build aarch64-unknown-none
518-
run: cd ./fuzzers/fuzz_anything/baby_no_std && cargo +nightly build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release && cd ../..
511+
run: cd ./fuzzers/fuzz_anything/baby_no_std && cargo build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release && cd ../..
519512
- name: run x86_64 until panic!
520-
run: cd ./fuzzers/fuzz_anything/baby_no_std && cargo +nightly run || test $? -ne 0 || exit 1
513+
run: cd ./fuzzers/fuzz_anything/baby_no_std && cargo run || test $? -ne 0 || exit 1
521514
- name: no_std tests
522515
run: cd ./libafl && cargo test --no-default-features
523516

@@ -534,7 +527,7 @@ jobs:
534527
- name: libafl armv6m-none-eabi (32 bit no_std) clippy
535528
run: cd ./libafl && cargo clippy --target thumbv6m-none-eabi --no-default-features
536529
- name: Build no_std no_alloc bolts
537-
run: cd ./libafl_bolts && cargo +nightly build -Zbuild-std=core --target aarch64-unknown-none --no-default-features -v --release && cd ../
530+
run: cd ./libafl_bolts && cargo build -Zbuild-std=core --target aarch64-unknown-none --no-default-features -v --release && cd ../
538531

539532
format-toml:
540533
runs-on: ubuntu-24.04
@@ -621,8 +614,8 @@ jobs:
621614
runs-on: macOS-latest
622615
steps:
623616
- uses: dtolnay/rust-toolchain@stable
624-
- name: Add nightly clippy
625-
run: rustup toolchain install nightly --component clippy --allow-downgrade && rustup default nightly
617+
with:
618+
components: clippy
626619
- name: Install deps
627620
run: brew install z3 gtk+3 python llvm@${{env.MAIN_LLVM_VERSION}}
628621
- name: Install cxxbridge
@@ -634,7 +627,7 @@ jobs:
634627
- name: Increase map sizes
635628
run: ./scripts/shmem_limits_macos.sh
636629
- name: Clippy
637-
run: cargo +nightly clippy --tests --all --exclude libafl_nyx --exclude symcc_runtime --exclude runtime_test
630+
run: cargo clippy --tests --all --exclude libafl_nyx --exclude symcc_runtime --exclude runtime_test
638631

639632
android:
640633
runs-on: ubuntu-24.04

.github/workflows/fuzzer-tester-prepare/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ runs:
1515
- name: enable mult-thread for `make`
1616
shell: bash
1717
run: export MAKEFLAGS="-j$(expr $(nproc) \+ 1)"
18+
- name: Add nightly toolchain
19+
if: ${{ inputs.fuzzer-name == './fuzzers/inprocess/fuzzbench_ctx' || inputs.fuzzer-name == './fuzzers/fuzz_anything/baby_no_std' || inputs.fuzzer-name == './fuzzers/baby/tutorial'}}
20+
shell: bash
21+
run: rustup toolchain install nightly-x86_64-unknown-linux-gnu; rustup component add clippy rustfmt --toolchain nightly-x86_64-unknown-linux-gnu; rustup default nightly
1822
- name: Add no_std toolchain
1923
if: ${{ inputs.fuzzer-name == './fuzzers/fuzz_anything/baby_no_std' }}
2024
shell: bash
21-
run: rustup toolchain install nightly-x86_64-unknown-linux-gnu ; rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
25+
run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
2226
- name: Add nyx deps
2327
if: ${{ inputs.fuzzer-name == './fuzzers/full_system/nyx_launcher' || inputs.fuzzer-name == './fuzzers/full_system/nyx_libxml2_standalone' || inputs.fuzzer-name == './fuzzers/full_system/nyx_libxml2_parallel' }}
2428
shell: bash

.github/workflows/librasan-prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
qemu-user \
4444
software-properties-common \
4545
wget
46-
- uses: dtolnay/rust-toolchain@nightly
46+
- uses: dtolnay/rust-toolchain@stable
4747
- name: install just
4848
uses: extractions/setup-just@v2
4949
with:

.github/workflows/ubuntu-prepare/action.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,14 @@ runs:
1212
run: |
1313
sudo apt-get update
1414
sudo apt-get install -y curl lsb-release wget software-properties-common gnupg shellcheck pax-utils libsqlite3-dev libpixman-1-dev libc6-dev gcc g++ build-essential libglib2.0-dev
15-
- uses: dtolnay/rust-toolchain@nightly
15+
- uses: dtolnay/rust-toolchain@stable
16+
with:
17+
components: clippy, rustfmt
1618
- name: install just
1719
uses: extractions/setup-just@v2
1820
with:
1921
just-version: '1.40.0'
20-
- name: Add stable clippy
21-
shell: bash
22-
run: rustup toolchain install stable --component clippy --allow-downgrade
23-
- name: Add nightly clippy
24-
shell: bash
25-
run: rustup toolchain install nightly --component clippy --allow-downgrade
2622
- uses: taiki-e/install-action@cargo-hack
27-
- name: Add nightly
28-
shell: bash
29-
run: rustup toolchain install nightly --allow-downgrade
30-
- name: Default to nightly
31-
shell: bash
32-
run: rustup default nightly
3323
- name: Install LLVM
3424
shell: bash
3525
run: |

.github/workflows/windows-tester-prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Sets up the Rust environment for the CI workflow
33
runs:
44
using: composite
55
steps:
6-
- uses: dtolnay/rust-toolchain@nightly
6+
- uses: dtolnay/rust-toolchain@stable
77
with:
88
components: llvm-tools, clippy, rustfmt
99
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)