-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make v0.2.x re-export v0.5.y
- Loading branch information
Showing
33 changed files
with
337 additions
and
64,007 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 |
---|---|---|
|
@@ -3,172 +3,100 @@ name: CI | |
on: | ||
push: | ||
branches: | ||
- main | ||
- v0.1.x | ||
- v0.2.x | ||
- v0.3.x | ||
- v0.4.x | ||
pull_request: | ||
branches: | ||
- main | ||
- v0.1.x | ||
- v0.2.x | ||
- v0.3.x | ||
- v0.4.x | ||
schedule: | ||
- cron: "58 7 * * 3" | ||
- cron: "58 2 * * 3" | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
check: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: recursive | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: fmt | ||
toolchain: nightly | ||
components: rustfmt | ||
components: clippy,rustfmt | ||
|
||
- run: cargo fmt --all -- --check | ||
|
||
check: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.57" | ||
- stable | ||
- nightly | ||
|
||
name: "Check/${{ matrix.toolchain }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: check | ||
toolchain: ${{ matrix.toolchain }} | ||
components: clippy | ||
|
||
- name: Check | ||
run: cargo check --workspace --all-targets --features testing | ||
|
||
- name: Lint | ||
run: cargo clippy --workspace --all-targets --features testing -- -D warnings | ||
- run: cargo clippy --package [email protected] --all-targets -- -D clippy::pedantic | ||
- run: cargo package --package [email protected] | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- "1.57" | ||
- stable | ||
- nightly | ||
platform: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
|
||
name: "Test/${{ matrix.toolchain }} (${{ matrix.platform }})" | ||
runs-on: ${{ matrix.platform }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: test | ||
toolchain: ${{ matrix.toolchain }} | ||
toolchain: stable | ||
components: clippy | ||
|
||
- name: Test | ||
run: cargo test --workspace --all-targets --features testing -- --show-output | ||
- run: cargo check --package [email protected] --all-targets | ||
- run: cargo clippy --package [email protected] --all-targets -- -D warnings | ||
- run: cargo test --package [email protected] --all-targets | ||
- run: cargo run --example current-time | ||
|
||
minimum-versions: | ||
name: "Minimal versions" | ||
runs-on: ubuntu-latest | ||
doc: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: recursive | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: minimum-versions | ||
toolchain: nightly | ||
components: rust-docs | ||
|
||
- name: Update lockfile | ||
run: cd tzdb && cargo generate-lockfile -Zminimal-versions | ||
|
||
- name: Test | ||
run: cd tzdb && cargo test --all-targets --features testing -- --show-output | ||
- run: cargo doc --package [email protected] --all-features --no-deps | ||
env: | ||
RUSTDOCFLAGS: "-D warnings" | ||
|
||
miri: | ||
name: "Miri" | ||
runs-on: ubuntu-latest | ||
audit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: recursive | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: miri | ||
toolchain: nightly | ||
components: miri | ||
|
||
- name: Test | ||
run: cargo miri test --workspace --all-targets --features testing -- --show-output | ||
|
||
doc: | ||
name: "Documentation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
- name: Audit | ||
uses: actions-rs/audit-check@v1 | ||
with: | ||
key: name | ||
toolchain: nightly | ||
components: rust-docs | ||
|
||
- run: cargo doc --package tzdb --features docsrs --all-features | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
audit: | ||
name: "Cargo audit" | ||
runs-on: ubuntu-latest | ||
devskim: | ||
name: DevSkim | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Checkout | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: recursive | ||
|
||
- name: Setup Rust | ||
uses: ./.github/actions/setup-rust | ||
with: | ||
key: audit | ||
|
||
- run: cargo update | ||
- name: Run DevSkim scanner | ||
uses: microsoft/DevSkim-Action@v1 | ||
|
||
- name: Audit | ||
uses: actions-rs/audit-check@v1 | ||
- name: Upload DevSkim scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sarif_file: devskim-results.sarif |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/target | ||
/tmp | ||
/Cargo.lock | ||
|
||
run.cgi | ||
|
||
|
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.