-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into stub-tz-transition-method
- Loading branch information
Showing
24 changed files
with
463 additions
and
238 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
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ changelog: | |
- C-testing | ||
- title: Other Changes | ||
labels: | ||
- '*' | ||
- "*" |
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 |
---|---|---|
|
@@ -2,16 +2,15 @@ name: Rust - Continuous integration | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
|
||
concurrency: | ||
# Allow one run at a time for PRs, but multiple for other invocations | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
||
env: | ||
RUSTFLAGS: -Dwarnings | ||
CARGO_TERM_COLOR: always | ||
|
@@ -21,21 +20,21 @@ jobs: | |
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy, rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: lint | ||
- name: Install cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
- name: Check rustfmt | ||
run: cargo fmt --all -- --check | ||
- name: Check clippy | ||
run: cargo ws exec cargo clippy --all-features --all-targets | ||
- name: Check clippy (No features) | ||
run: cargo ws exec cargo clippy --no-default-features --all-targets | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy, rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: lint | ||
- name: Install cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
- name: Check rustfmt | ||
run: cargo fmt --all -- --check | ||
- name: Check clippy | ||
run: cargo ws exec cargo clippy --all-features --all-targets | ||
- name: Check clippy (No features) | ||
run: cargo ws exec cargo clippy --no-default-features --all-targets | ||
|
||
msrv: | ||
name: MSRV | ||
|
@@ -76,15 +75,30 @@ jobs: | |
with: | ||
key: build-test | ||
|
||
- name: Cargo build | ||
run: cargo build --quiet | ||
- name: Test | ||
run: cargo test | ||
|
||
- name: Cargo build --all-features | ||
run: cargo build --quiet --all-features | ||
- name: Test --all-features | ||
run: cargo test --all-features | ||
|
||
feature-test: | ||
name: Test feature matrix | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: features-test | ||
- name: Install cargo-all-features | ||
uses: baptiste0928/[email protected] | ||
with: | ||
crate: cargo-all-features | ||
|
||
- name: Test all features | ||
run: cargo test-all-features | ||
|
||
ffi: | ||
name: Test FFI (${{ matrix.rust.name }}, ${{ matrix.os }}) | ||
strategy: | ||
|
@@ -122,4 +136,3 @@ jobs: | |
key: docs | ||
- name: Generate documentation | ||
run: cargo doc -v --document-private-items --all-features | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.