Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Sep 14, 2022
1 parent 5468718 commit 29b76e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 52 deletions.
41 changes: 3 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
fail-fast: false
matrix:
toolchain:
- "1.60"
- "1.55"
- "1.56"
- stable
- nightly
platform:
Expand Down Expand Up @@ -147,7 +148,7 @@ jobs:
target: ${{ matrix.target }}

- name: Test
run: cargo miri test --package tzdb --no-default-features --features by-name --target ${{ matrix.target }} -- --show-output
run: cargo miri test --package tzdb --target ${{ matrix.target }} -- --show-output

doc:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -191,42 +192,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

powerset:
strategy:
fail-fast: false
matrix:
toolchain:
- "1.60"
- stable
- nightly
platform:
- ubuntu-20.04
# - windows-2022
# - macos-12
versions:
- ""
- "-Zminimal-versions"

runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Rust
uses: ./.github/actions/setup-rust
with:
toolchain: ${{ matrix.toolchain }}

- name: Install hack
run: cargo hack --version || cargo +stable install cargo-hack --force

- run: cargo generate-lockfile ${{ matrix.versions }}
env:
RUSTC_BOOTSTRAP: 1

- name: Powerset
run: cargo hack test --feature-powerset --exclude-features default --ignore-private

build-cross:
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ utcnow = { version = "^0.2.1", default-features = false }

[dev-dependencies]
proptest = "=1"
test-strategy = "^0.2.0"
structmeta = "^0.1.5"
test-strategy = "=0.1.2"
structmeta = "=0.1.4"

[features]
default = ["std", "fallback"]
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Kijewski/tzdb/CI?logo=github)](https://github.com/Kijewski/tzdb/actions/workflows/ci.yml)
[![Crates.io](https://img.shields.io/crates/v/tzdb?logo=rust)](https://crates.io/crates/tzdb)
![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.60+-important?logo=rust "Minimum Supported Rust Version")
![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.55+-important?logo=rust "Minimum Supported Rust Version")
[![License](https://img.shields.io/crates/l/tzdb?color=informational&logo=apache)](/LICENSES)

Static time zone information for [tz-rs](https://crates.io/crates/tz-rs).
Expand Down Expand Up @@ -38,16 +38,6 @@ let current_time = tzdb::now::in_named_or(tzdb::time_zone::GMT, "Some/City")?;

## Feature flags

* `by-name` <sup>(enabled by default, enabled by `local`)</sup> — enables `tz_by_name()` to get a time zone at runtime by name

* `list` <sup>(enabled by default)</sup> — enables `TZ_NAMES` to get a list of all shipped time zones

* `local` <sup>(enabled by default)</sup> — enables `local_tz()` to get the system time zone

* `now` <sup>(enabled by default)</sup> — enables the module `now` to get the current time

* `binary` – make the unparsed, binary tzdata of a time zone available

* `std` <sup>(enabled by default)</sup> – enable features that need the standard library `std`

* `alloc` <sup>(enabled by default, enabled by `std`)</sup> – enable features that need the standard library `alloc`
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//!
//! [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Kijewski/tzdb/CI?logo=github)](https://github.com/Kijewski/tzdb/actions/workflows/ci.yml)
//! [![Crates.io](https://img.shields.io/crates/v/tzdb?logo=rust)](https://crates.io/crates/tzdb)
//! ![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.60+-important?logo=rust "Minimum Supported Rust Version")
//! ![Minimum supported Rust version](https://img.shields.io/badge/rustc-1.55+-important?logo=rust "Minimum Supported Rust Version")
//! [![License](https://img.shields.io/crates/l/tzdb?color=informational&logo=apache)](/LICENSES)
//!
//! Static time zone information for [tz-rs](https://crates.io/crates/tz-rs).
Expand Down

0 comments on commit 29b76e6

Please sign in to comment.