Skip to content

Commit

Permalink
v5.1.0 (#60)
Browse files Browse the repository at this point in the history
* version bump for next release

* rustfmt & clippy only on stable, tweak test

* action tweaks

* action tweaks

* More actions tweaks

* cache tweaks
  • Loading branch information
CraZySacX authored Mar 27, 2021
1 parent 61e560e commit dc298d6
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 39 deletions.
105 changes: 68 additions & 37 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,84 +3,120 @@ on: [push, pull_request]
name: CI

jobs:
rustfmt:
name: ☢️ Formatting ☢️
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- run: cargo fmt --all -- --check
lints:
name: 🕳️ Lints 🕳️
needs: rustfmt
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- run: cargo clippy --all -- -D warnings
test:
name: vergen
needs: lints
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
rust: stable
other: i686-unknown-linux-gnu
target: i686-unknown-linux-gnu
- os: ubuntu-latest
rust: stable
other: x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
rust: beta
other: i686-unknown-linux-gnu
target: i686-unknown-linux-gnu
- os: ubuntu-latest
rust: beta
other: x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
rust: nightly
other: i686-unknown-linux-gnu
target: i686-unknown-linux-gnu
- os: ubuntu-latest
rust: nightly
other: x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
- os: macos-latest
rust: stable
other: x86_64-apple-darwin
target: x86_64-apple-darwin
- os: macos-latest
rust: stable
other: x86_64-apple-ios
target: x86_64-apple-ios
- os: macos-latest
rust: beta
other: x86_64-apple-darwin
target: x86_64-apple-darwin
- os: macos-latest
rust: beta
other: x86_64-apple-ios
target: x86_64-apple-ios
- os: macos-latest
rust: nightly
other: x86_64-apple-darwin
target: x86_64-apple-darwin
- os: macos-latest
rust: nightly
other: x86_64-apple-ios
target: x86_64-apple-ios
- os: windows-latest
rust: stable-msvc
other: i686-pc-windows-msvc
target: i686-pc-windows-msvc
- os: windows-latest
rust: stable-msvc
other: x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
- os: windows-latest
rust: beta-msvc
other: i686-pc-windows-msvc
target: i686-pc-windows-msvc
- os: windows-latest
rust: beta-msvc
other: x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
- os: windows-latest
rust: nightly-msvc
other: i686-pc-windows-msvc
target: i686-pc-windows-msvc
- os: windows-latest
rust: nightly-msvc
other: x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
- os: windows-latest
rust: stable-gnu
other: i686-pc-windows-gnu
target: i686-pc-windows-gnu
- os: windows-latest
rust: stable-gnu
other: x86_64-pc-windows-gnu
target: x86_64-pc-windows-gnu
- os: windows-latest
rust: beta-gnu
other: i686-pc-windows-gnu
target: i686-pc-windows-gnu
- os: windows-latest
rust: beta-gnu
other: x86_64-pc-windows-gnu
target: x86_64-pc-windows-gnu
- os: windows-latest
rust: nightly-gnu
other: i686-pc-windows-gnu
target: i686-pc-windows-gnu
- os: windows-latest
rust: nightly-gnu
other: x86_64-pc-windows-gnu
target: x86_64-pc-windows-gnu
steps:
- name: ✔️ Checkout ✔️
uses: actions/checkout@v2
Expand All @@ -92,7 +128,14 @@ jobs:
path: |
~/.cargo/bin/cargo-tarpaulin*
~/.cargo/bin/cargo-*-all-features*
key: ${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
key: ${{ runner.os }}-${{ matrix.rust }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/toolchain@v1
name: 🧰 Toolchain 🧰
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
override: true
- name: ✔️ Checkout (notagsrepo master) ✔️
run: cd testdata/notagsrepo && git checkout master && cd ..
- name: ✔️ Checkout (tagsrepo master) ✔️
Expand All @@ -116,18 +159,6 @@ jobs:
version: latest
use-tool-cache: true
continue-on-error: true
- name: 📅 Update 📅
run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: ➕ Add ➕
run: rustup component add rustfmt || echo "rustfmt not available"
- name: ➕ Add ➕
run: rustup component add clippy || echo "clippy not available"
- name: ☢️ Formatting ☢️
run: cargo fmt --all -- --check
- name: 🕳️ Lints 🕳️
run: cargo clippy --all -- -D warnings
- name: 🏗️ Build 🏗️
run: cargo build-all-features
- name: 🧪 Test 🧪
run: cargo test-all-features
- name: 🙊 Code Coverage 🙊
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Jason Ozias <[email protected]>"]
categories = ["development-tools", "development-tools::build-utils"]
description = "Generate build, git, and rustc related 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the env! macro"
description = "Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the env! macro"
documentation = "http://docs.rs/vergen"
edition = "2018"
homepage = "http://github.com/rustyhorde/vergen"
Expand All @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
name = "vergen"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
version = "5.0.1"
version = "5.1.0"

[features]
default = ["build", "cargo", "git", "rustc", "si"]
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ A full list of environment variables that can be generated are listed in the fol
| `VERGEN_CARGO_FEATURES` | git,build |
| `VERGEN_CARGO_PROFILE` | debug |
| `VERGEN_CARGO_TARGET_TRIPLE` | x86_64-unknown-linux-gnu |
| `VERGEN_SYSINFO_NAME` | Darwin |
| `VERGEN_SYSINFO_OS_VERSION` | MacOS 10.15.7 Catalina |
| `VERGEN_SYSINFO_USER` | Yoda |
| `VERGEN_SYSINFO_TOTAL_MEMORY` | 16 GB |
| `VERGEN_SYSINFO_CPU_VENDOR` | Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz |
| `VERGEN_SYSINFO_CPU_CORE_COUNT` | 4 |

## Contributing
See the documentation at [CONTRIBUTING.md](CONTRIBUTING.md)
Expand Down

0 comments on commit dc298d6

Please sign in to comment.