Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Oct 17, 2023
1 parent f6fb059 commit afd79b7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 57 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,61 +169,61 @@ jobs:
- name: Run test
run: cargo hack test --feature-powerset --include-features sync,async --exclude-no-default-features

sanitizer:
name: sanitizer
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Cache cargo build and registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-sanitizer-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sanitizer-
- name: Install Rust
run: rustup update $nightly && rustup default $nightly
- name: Install rust-src
run: rustup component add rust-src
- name: Install cargo-hack
run: cargo install cargo-hack
- name: ASAN / LSAN / TSAN
run: ci/sanitizer.sh
# sanitizer:
# name: sanitizer
# strategy:
# matrix:
# os:
# - ubuntu-latest
# - macos-latest
# - windows-latest
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# - name: Cache cargo build and registry
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-sanitizer-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-sanitizer-
# - name: Install Rust
# run: rustup update $nightly && rustup default $nightly
# - name: Install rust-src
# run: rustup component add rust-src
# - name: Install cargo-hack
# run: cargo install cargo-hack
# - name: ASAN / LSAN / TSAN
# run: ci/sanitizer.sh

miri:
name: miri
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Cache cargo build and registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-miri-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-miri-
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Miri
run: ci/miri.sh
# miri:
# name: miri
# strategy:
# matrix:
# os:
# - ubuntu-latest
# - macos-latest
# - windows-latest
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# - name: Cache cargo build and registry
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-miri-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-miri-
# - name: Install cargo-hack
# run: cargo install cargo-hack
# - name: Miri
# run: ci/miri.sh

# # valgrind
# valgrind:
Expand Down Expand Up @@ -295,8 +295,8 @@ jobs:
- build
- cross
- test
- sanitizer
- miri
# - sanitizer
# - miri
- docs
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ async-channel = { version = "1.8", optional = true }
async-io = { version = "1.12", optional = true }
crossbeam-channel = { version = "0.5", optional = true }
futures = { version = "0.3", optional = true }
log = { version = "0.4", optional = true }
parking_lot = "0.12"
rand = "0.8"
serde = { version = "1", optional = true, features = ["derive"] }
Expand Down

0 comments on commit afd79b7

Please sign in to comment.