Release 0.1.20 #876
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
name: CI | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- dev | |
schedule: | |
- cron: '0 2 * * *' | |
workflow_dispatch: | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
CARGO_NET_RETRY: 10 | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
RUSTFLAGS: -D warnings | |
RUSTUP_MAX_RETRIES: 10 | |
defaults: | |
run: | |
shell: bash | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
deny: | |
uses: taiki-e/github-actions/.github/workflows/deny.yml@main | |
msrv: | |
uses: taiki-e/github-actions/.github/workflows/msrv.yml@main | |
with: | |
event_name: ${{ github.event_name }} | |
release-dry-run: | |
uses: taiki-e/github-actions/.github/workflows/release-dry-run.yml@main | |
tidy: | |
uses: taiki-e/github-actions/.github/workflows/tidy.yml@main | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- rust: stable | |
- rust: beta | |
- rust: nightly | |
- rust: nightly | |
os: macos-11 | |
- rust: nightly | |
os: windows-2019 | |
runs-on: ${{ matrix.os || 'ubuntu-20.04' }} | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Install Rust | |
run: rustup toolchain add ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} | |
- run: rustup toolchain add nightly --no-self-update | |
- uses: taiki-e/install-action@cargo-hack | |
- uses: taiki-e/install-action@cargo-minimal-versions | |
- run: echo "RUSTFLAGS=${RUSTFLAGS} -C target-feature=+crt-static" >>"${GITHUB_ENV}" | |
if: startsWith(matrix.os, 'windows') | |
- run: cargo test --workspace --all-features | |
- run: cargo hack build --workspace --no-private --feature-powerset --no-dev-deps | |
- run: cargo minimal-versions build --workspace --no-private --all-features | |
if: startsWith(matrix.rust, 'nightly') | |
- run: cargo install -f --path . --debug | |
- run: cargo minimal-versions check --workspace --no-private --all-features -v | |
- run: cargo minimal-versions build --workspace --no-private --all-features -v | |
- run: cargo minimal-versions test --workspace --all-features -v | |
- run: | | |
set -eEuxo pipefail | |
git clone --depth 1 https://github.com/taiki-e/portable-atomic.git | |
cd portable-atomic | |
rustup toolchain add 1.34 --no-self-update | |
RUSTC_BOOTSTRAP=1 cargo +1.34 minimal-versions build --workspace --no-private -v | |
if: startsWith(matrix.rust, 'nightly') | |
test-no-rustup: | |
name: test (no rustup) | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
container: alpine | |
steps: | |
- name: Install Rust | |
run: apk --no-cache add bash cargo git | |
shell: sh | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- run: git config --system --add safe.directory '*' # Workaround for https://github.com/actions/runner/issues/2033 | |
- uses: taiki-e/install-action@cargo-hack | |
- run: echo "RUSTC_BOOTSTRAP=1" >>"${GITHUB_ENV}" | |
- run: cargo test --workspace --all-features | |
- run: cargo install -f --path . --debug | |
- run: cargo minimal-versions check --workspace --no-private --all-features -v | |
- run: cargo minimal-versions build --workspace --no-private --all-features -v | |
- run: cargo minimal-versions test --workspace --all-features -v | |
miri: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Install Rust | |
run: rustup toolchain add nightly --no-self-update --component miri && rustup default nightly | |
- run: cargo miri test --workspace --all-features | |
env: | |
MIRIFLAGS: -Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zmiri-disable-isolation | |
RUSTDOCFLAGS: ${{ env.RUSTDOCFLAGS }} -Z randomize-layout | |
RUSTFLAGS: ${{ env.RUSTFLAGS }} -Z randomize-layout |