Skip to content

Commit

Permalink
ci: Use taiki-e/github-actions/.github/workflows/test.yml reusable wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
taiki-e committed Jan 31, 2025
1 parent e0f0486 commit 46c1c5c
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ env:
RUSTDOCFLAGS: -D warnings
RUSTFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10
# NB: sync with miri job's --exclude option
EXCLUDE: --exclude parse-changelog-internal-codegen

defaults:
run:
Expand All @@ -38,7 +36,7 @@ jobs:
uses: taiki-e/github-actions/.github/workflows/miri.yml@main
with:
event_name: ${{ github.event_name }}
# NB: sync with env.EXCLUDE
# NB: sync with test job's --exclude option
args: --exclude parse-changelog-internal-codegen
# We cannot use -Zmiri-symbolic-alignment-check due to memchr 2.6.0 bug https://github.com/taiki-e/parse-changelog/commit/376d961a5a8adb79c95bd3b6f7188d138981156f
miriflags: -Zmiri-strict-provenance -Zmiri-disable-isolation
Expand All @@ -48,6 +46,13 @@ jobs:
event_name: ${{ github.event_name }}
release-dry-run:
uses: taiki-e/github-actions/.github/workflows/release-dry-run.yml@main
test:
uses: taiki-e/github-actions/.github/workflows/test.yml@main
with:
# NB: sync with miri job's --exclude option
test-args: --exclude parse-changelog-internal-codegen
build-args: --lib
no-std: false
tidy:
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main
permissions:
Expand All @@ -56,32 +61,6 @@ jobs:
repository-projects: read # for gh pr edit --add-assignee
secrets: inherit

test:
strategy:
fail-fast: false
matrix:
include:
- rust: stable
- rust: beta
- rust: nightly
- rust: nightly
os: macos-latest
- rust: nightly
os: windows-latest
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
timeout-minutes: 60
steps:
- uses: taiki-e/checkout-action@v1
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: ${{ matrix.rust }}
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@cargo-minimal-versions
- run: cargo test --workspace --all-features ${EXCLUDE}
- run: cargo hack build --workspace --no-private --feature-powerset --no-dev-deps --lib
- run: cargo minimal-versions build --workspace --no-private --detach-path-deps=skip-exact --all-features
- run: cargo minimal-versions build --workspace --no-private --detach-path-deps=skip-exact --all-features --direct

fuzz:
env:
FUZZ_MAX_TOTAL_TIME: 60 # 1 minute
Expand Down

0 comments on commit 46c1c5c

Please sign in to comment.