Skip to content

Commit

Permalink
use Nightly for cargo doc, use pinned Nightly for fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Dec 29, 2024
1 parent 8338de7 commit 77bb7f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
CARGO_TERM_COLOR: "always"
RUSTFLAGS: "-D warnings"
RUST_VERSION: 1.83.0
RUST_NIGHTLY_VERSION: "nightly-2024-12-20"

jobs:
fmt:
Expand Down Expand Up @@ -59,8 +60,8 @@ jobs:

- name: Install toolchain
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --no-self-update --profile minimal
rustup override set ${{ env.RUST_VERSION }}
rustup toolchain install ${{ env.RUST_NIGHTLY_VERSION }} --no-self-update --profile minimal
rustup override set ${{ env.RUST_NIGHTLY_VERSION }}
- uses: Swatinem/rust-cache@v2
- name: Run rustdoc
run: cargo doc --all-features --no-deps --manifest-path compact_str/Cargo.toml
25 changes: 12 additions & 13 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
- main
pull_request:
paths:
- 'compact_str/**'
- 'fuzz/**'
- '.github/workflows/fuzz.yml'
- '!CHANGELOG.md'
- '!**/README.md'
- "compact_str/**"
- "fuzz/**"
- ".github/workflows/fuzz.yml"
- "!CHANGELOG.md"
- "!**/README.md"
workflow_dispatch:
# schedule:
# - cron: '0 01,13 * * *'
Expand All @@ -18,6 +18,7 @@ name: Fuzz
env:
CARGO_TERM_COLOR: "always"
RUSTFLAGS: "-D warnings -Zrandomize-layout"
RUST_NIGHTLY_VERSION: "nightly-2024-12-20"

jobs:
libFuzzer_x86_64:
Expand All @@ -26,18 +27,16 @@ jobs:
steps:
- uses: actions/checkout@v4
name: Checkout compact_str

- name: Install toolchain
run: |
rustup toolchain install nightly-2024-06-01 --no-self-update
rustup override set nightly-2024-06-01
rustup target add x86_64-unknown-linux-musl
rustup toolchain install ${{ env.RUST_NIGHTLY_VERSION }} --no-self-update
rustup override set ${{ env.RUST_NIGHTLY_VERSION }}
- name: Install cargo-fuzz
uses: taiki-e/install-action@v2
with:
tool: cargo-fuzz
- uses: Swatinem/rust-cache@v2
run: |
cargo install cargo-fuzz
- uses: Swatinem/rust-cache@v2

- name: Set Fuzz Time
run: |
Expand Down

0 comments on commit 77bb7f1

Please sign in to comment.