Skip to content

Commit

Permalink
Make v0.2.x re-export v0.5.y (#153)
Browse files Browse the repository at this point in the history
* Make v0.2.x re-export v0.5.y
  • Loading branch information
Kijewski authored Nov 30, 2022
1 parent 4f6d344 commit 3e47369
Show file tree
Hide file tree
Showing 33 changed files with 337 additions and 64,007 deletions.
154 changes: 41 additions & 113 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
31 changes: 0 additions & 31 deletions .github/workflows/devskim-analysis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target
/tmp
/Cargo.lock

run.cgi

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changes between the versions

### 0.2.14

* Make v0.2.x branch re-export v0.5.x branch
* Implement for `serde_with` v2

### 0.2.13

* Update to [Time Zone Database 2022g](https://mm.icann.org/pipermail/tz-announce/2022-November/000076.html)
Expand Down
Loading

0 comments on commit 3e47369

Please sign in to comment.