-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
49 changed files
with
518 additions
and
397 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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
name: CI (post-merge) | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
push: { branches: [master] } | ||
|
||
permissions: { contents: read } | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_and_test_linux_nightly: | ||
|
@@ -27,39 +32,26 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install ${{ matrix.version }} | ||
uses: actions-rs/toolchain@v1 | ||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.version }}-${{ matrix.target.triple }} | ||
profile: minimal | ||
override: true | ||
toolchain: ${{ matrix.version }} | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
|
||
- name: Generate Cargo.lock | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: generate-lockfile | ||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
- uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
|
||
- name: check minimal | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-min } | ||
run: cargo ci-min | ||
|
||
- name: check minimal + examples | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-check-min-examples } | ||
run: cargo ci-check-min-examples | ||
|
||
- name: check default | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-check } | ||
run: cargo ci-check | ||
|
||
- name: tests | ||
uses: actions-rs/cargo@v1 | ||
timeout-minutes: 40 | ||
with: { command: ci-test } | ||
run: cargo ci-test | ||
|
||
- name: Clear the cargo caches | ||
run: | | ||
|
@@ -86,18 +78,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install ${{ matrix.version }} | ||
run: | | ||
rustup install ${{ matrix.version }}-${{ matrix.target.triple }} | ||
rustup override set ${{ matrix.version }}-${{ matrix.target.triple }} | ||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
|
||
- name: Generate Cargo.lock | ||
run: cargo generate-lockfile | ||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
- uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
|
||
- name: check minimal | ||
run: cargo ci-min | ||
|
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: [master] | ||
pull_request: {} | ||
push: { branches: [master] } | ||
|
||
permissions: { contents: read } | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_and_test_linux: | ||
|
@@ -14,7 +18,7 @@ jobs: | |
target: | ||
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu } | ||
version: | ||
- 1.59 # MSRV | ||
- '1.60' # MSRV | ||
- stable | ||
|
||
name: ${{ matrix.target.name }} / ${{ matrix.version }} | ||
|
@@ -35,18 +39,19 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install ${{ matrix.version }} | ||
run: | | ||
rustup install ${{ matrix.version }}-${{ matrix.target.triple }} | ||
rustup override set ${{ matrix.version }}-${{ matrix.target.triple }} | ||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
|
||
- name: Generate Cargo.lock | ||
run: cargo generate-lockfile | ||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
- name: workaround MSRV issues | ||
if: matrix.version != 'stable' | ||
run: | | ||
cargo update -p=time:0.3.20 --precise=0.3.16 | ||
- name: check minimal | ||
run: cargo ci-min | ||
|
@@ -78,7 +83,7 @@ jobs: | |
triple: x86_64-pc-windows-msvc, | ||
} | ||
version: | ||
- 1.59 # MSRV | ||
- '1.60' # MSRV | ||
- stable | ||
|
||
name: ${{ matrix.target.name }} / ${{ matrix.version }} | ||
|
@@ -87,18 +92,19 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install ${{ matrix.version }} | ||
run: | | ||
rustup install ${{ matrix.version }}-${{ matrix.target.triple }} | ||
rustup override set ${{ matrix.version }}-${{ matrix.target.triple }} | ||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
|
||
- name: Generate Cargo.lock | ||
run: cargo generate-lockfile | ||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
- name: workaround MSRV issues | ||
if: matrix.version != 'stable' | ||
run: | | ||
cargo update -p=time:0.3.20 --precise=0.3.16 | ||
- name: check minimal | ||
run: cargo ci-min | ||
|
@@ -125,14 +131,8 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (nightly) | ||
run: | | ||
rustup install nightly | ||
rustup override set nightly | ||
- name: Generate Cargo.lock | ||
run: cargo generate-lockfile | ||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: { toolchain: nightly } | ||
|
||
- name: doc tests | ||
timeout-minutes: 40 | ||
|
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# disabled because `cargo tarpaulin` currently segfaults | ||
|
||
name: Coverage | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
push: { branches: [master] } | ||
|
||
permissions: { contents: read } | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
coverage: | ||
|
@@ -20,20 +23,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install stable | ||
run: | | ||
rustup override set stable | ||
rustup update stable | ||
- name: Generate Cargo.lock | ||
run: cargo generate-lockfile | ||
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: { toolchain: nightly } | ||
|
||
- name: Generate coverage file | ||
run: | | ||
cargo install cargo-tarpaulin --vers "^0.13" | ||
cargo tarpaulin --workspace --out Xml --verbose | ||
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: { file: cobertura.xml } |
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
Oops, something went wrong.