-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: Enable ASan on `libjxl`
- Loading branch information
Showing
7 changed files
with
77 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
os: [ubuntu-latest, macos-latest, windows-latest] | ||
include: | ||
- os: macos-13 | ||
rustflags: "-Clink-args=-fapple-link-rtlib" | ||
# rustflags: "-Clink-args=-fapple-link-rtlib" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -31,18 +31,13 @@ jobs: | |
uses: dtolnay/rust-toolchain@stable | ||
- name: Install cargo-nextest | ||
uses: taiki-e/install-action@nextest | ||
- name: Dependency | ||
run: cargo fetch | ||
- uses: actions/cache@v4 | ||
id: cache | ||
- uses: Leafwing-Studios/[email protected] | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | ||
sweep-cache: true | ||
- name: Tests | ||
run: cargo nextest run --all-features --workspace | ||
env: | ||
RUSTFLAGS: "${{ matrix.rustflags }}" | ||
# env: | ||
# RUSTFLAGS: "${{ matrix.rustflags }}" | ||
|
||
coverage: | ||
name: Code Coverage | ||
|
@@ -60,14 +55,9 @@ jobs: | |
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Install cargo-nextest | ||
uses: taiki-e/install-action@nextest | ||
- name: Dependency | ||
run: cargo fetch | ||
- uses: actions/cache@v4 | ||
id: cache | ||
- uses: Leafwing-Studios/[email protected] | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-cov-${{ hashFiles('**/Cargo.lock') }} | ||
sweep-cache: true | ||
- name: Generate code coverage | ||
run: cargo +nightly llvm-cov nextest | ||
--all-features --workspace | ||
|
@@ -98,35 +88,25 @@ jobs: | |
components: rust-src | ||
- name: Install cargo-nextest | ||
uses: taiki-e/install-action@nextest | ||
- name: Dependency | ||
run: cargo fetch | ||
- uses: actions/cache@v4 | ||
id: cache | ||
- uses: Leafwing-Studios/[email protected] | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-sanitizer-${{ hashFiles('**/Cargo.lock') }} | ||
sweep-cache: true | ||
- name: Test with Sanitizer | ||
run: cargo +nightly nextest run | ||
-Z build-std --target=x86_64-unknown-linux-gnu --all-features | ||
env: | ||
RUSTFLAGS: "-Zsanitizer=${{matrix.sanitizer}}" | ||
RUSTDOCFLAGS: "-Zsanitizer=${{matrix.sanitizer}}" | ||
RUSTFLAGS: "-Zsanitizer=${{matrix.sanitizer}} --cfg=asan" | ||
RUSTDOCFLAGS: "-Zsanitizer=${{matrix.sanitizer}} --cfg=asan" | ||
|
||
msrv: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Dependency | ||
run: cargo fetch | ||
- uses: actions/cache@v4 | ||
id: cache | ||
- uses: Leafwing-Studios/[email protected] | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} | ||
sweep-cache: true | ||
- uses: taiki-e/install-action@cargo-hack | ||
- run: cargo hack check --rust-version --workspace --all-targets --ignore-private --all-features | ||
|
||
|
@@ -140,14 +120,9 @@ jobs: | |
submodules: recursive | ||
- name: Install Rust | ||
run: rustup update stable | ||
- name: Dependency | ||
run: cargo fetch | ||
- uses: actions/cache@v4 | ||
id: cache | ||
- uses: Leafwing-Studios/[email protected] | ||
with: | ||
path: | | ||
target/ | ||
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }} | ||
sweep-cache: true | ||
- name: Run Clippy with reviewdog | ||
uses: giraffate/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters