-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
246 additions
and
236 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily |
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 |
---|---|---|
|
@@ -16,10 +16,8 @@ jobs: | |
matrix: | ||
target: | ||
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu } | ||
version: | ||
- nightly | ||
|
||
name: ${{ matrix.target.name }} / ${{ matrix.version }} | ||
name: ${{ matrix.target.name }} / nightly | ||
runs-on: ${{ matrix.target.os }} | ||
|
||
services: | ||
|
@@ -32,13 +30,14 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
toolchain: nightly | ||
|
||
- uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
- uses: taiki-e/[email protected] | ||
with: | ||
tool: cargo-hack | ||
|
||
- name: check minimal | ||
run: cargo ci-min | ||
|
@@ -61,30 +60,26 @@ jobs: | |
build_and_test_other_nightly: | ||
strategy: | ||
fail-fast: false | ||
# prettier-ignore | ||
matrix: | ||
target: | ||
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin } | ||
- { | ||
name: Windows, | ||
os: windows-latest, | ||
triple: x86_64-pc-windows-msvc, | ||
} | ||
version: | ||
- nightly | ||
|
||
name: ${{ matrix.target.name }} / ${{ matrix.version }} | ||
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc } | ||
|
||
name: ${{ matrix.target.name }} / nightly | ||
runs-on: ${{ matrix.target.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
toolchain: nightly | ||
|
||
- uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
- uses: taiki-e/[email protected] | ||
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,8 +1,12 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: {} | ||
push: { branches: [master] } | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
merge_group: | ||
types: [checks_requested] | ||
push: | ||
branches: [master] | ||
|
||
permissions: { contents: read } | ||
|
||
|
@@ -18,10 +22,10 @@ jobs: | |
target: | ||
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu } | ||
version: | ||
- '1.60' # MSRV | ||
- stable | ||
- { name: msrv, version: 1.68.0 } | ||
- { name: stable, version: stable } | ||
|
||
name: ${{ matrix.target.name }} / ${{ matrix.version }} | ||
name: ${{ matrix.target.name }} / ${{ matrix.version.name }} | ||
runs-on: ${{ matrix.target.os }} | ||
|
||
services: | ||
|
@@ -39,19 +43,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install Rust (${{ matrix.version.name }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
toolchain: ${{ matrix.version.version }} | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
uses: taiki-e/[email protected] | ||
with: | ||
tool: cargo-hack | ||
|
||
- name: workaround MSRV issues | ||
if: matrix.version != 'stable' | ||
run: | | ||
cargo update -p=time:0.3.20 --precise=0.3.16 | ||
# - name: workaround MSRV issues | ||
# if: matrix.version.name == 'msrv' | ||
# run: | | ||
# cargo update -p=time:0.3.20 --precise=0.3.16 | ||
|
||
- name: check minimal | ||
run: cargo ci-min | ||
|
@@ -75,36 +80,34 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
# prettier-ignore | ||
target: | ||
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin } | ||
- { | ||
name: Windows, | ||
os: windows-latest, | ||
triple: x86_64-pc-windows-msvc, | ||
} | ||
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc } | ||
version: | ||
- '1.60' # MSRV | ||
- stable | ||
- { name: msrv, version: 1.68.0 } | ||
- { name: stable, version: stable } | ||
|
||
name: ${{ matrix.target.name }} / ${{ matrix.version }} | ||
name: ${{ matrix.target.name }} / ${{ matrix.version.name }} | ||
runs-on: ${{ matrix.target.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (${{ matrix.version }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- name: Install Rust (${{ matrix.version.name }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 | ||
with: | ||
toolchain: ${{ matrix.version }} | ||
toolchain: ${{ matrix.version.version }} | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-hack } | ||
uses: taiki-e/[email protected] | ||
with: | ||
tool: cargo-hack | ||
|
||
- name: workaround MSRV issues | ||
if: matrix.version != 'stable' | ||
run: | | ||
cargo update -p=time:0.3.20 --precise=0.3.16 | ||
# - name: workaround MSRV issues | ||
# if: matrix.version.name == 'msrv' | ||
# run: | | ||
# cargo update -p=time:0.3.20 --precise=0.3.16 | ||
|
||
- name: check minimal | ||
run: cargo ci-min | ||
|
@@ -131,8 +134,9 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: { toolchain: nightly } | ||
uses: actions-rust-lang/[email protected] | ||
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,7 +1,8 @@ | ||
name: Coverage | ||
|
||
on: | ||
push: { branches: [master] } | ||
push: | ||
branches: [master] | ||
|
||
permissions: { contents: read } | ||
|
||
|
@@ -24,8 +25,9 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: { toolchain: nightly } | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: nightly | ||
|
||
- name: Generate coverage file | ||
run: | | ||
|
@@ -34,4 +36,5 @@ jobs: | |
- name: Upload to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: { file: cobertura.xml } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
|
@@ -29,11 +29,12 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: { components: clippy } | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
components: clippy | ||
|
||
- name: Check with Clippy | ||
run: cargo clippy --workspace --tests --all-features | ||
run: cargo clippy --workspace --tests --all-features -- -A unknown_lints | ||
|
||
public-api-diff: | ||
runs-on: ubuntu-latest | ||
|
@@ -47,12 +48,14 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: { toolchain: nightly } | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: nightly | ||
|
||
- name: Install cargo-public-api | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: { tool: cargo-public-api } | ||
uses: taiki-e/[email protected] | ||
with: | ||
tool: cargo-public-api | ||
|
||
- name: generate API diff | ||
run: | | ||
|
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.