From 9d57ad5002e349f3bef855eaaab2de9bcf5287a3 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Wed, 3 May 2023 22:11:58 -0700 Subject: [PATCH 1/5] misc: test in debug and release modes --- .github/workflows/ci.yaml | 8 +++++++- justfile | 19 +++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0953577..76ed03f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -48,6 +48,7 @@ jobs: - name: Build run: | + cargo build --target ${{ matrix.target }} cargo build --release --target ${{ matrix.target }} - name: Clippy @@ -55,7 +56,12 @@ jobs: cargo clippy --release --target ${{ matrix.target }} cargo clippy --release --all-features --target ${{ matrix.target }} - - name: Tests + - name: Tests (Debug) + run: | + cargo test --target ${{ matrix.target }} + cargo test --all-features --target ${{ matrix.target }} + + - name: Tests (Release) run: | cargo test --release --target ${{ matrix.target }} cargo test --release --all-features --target ${{ matrix.target }} diff --git a/justfile b/justfile index 7bdf379..5753501 100644 --- a/justfile +++ b/justfile @@ -45,16 +45,6 @@ bench BENCH="": exit 0 -# Check Release! -@check: - # First let's build the Rust bit. - cargo check \ - --release \ - --target x86_64-unknown-linux-gnu \ - --all-features \ - --target-dir "{{ cargo_dir }}" - - # Clean Cargo crap. @clean: # Most things go here. @@ -134,6 +124,15 @@ bench BENCH="": # Unit tests! @test: clear + cargo test \ + --all-features \ + --target x86_64-unknown-linux-gnu \ + --target-dir "{{ cargo_dir }}" + + cargo test \ + --target x86_64-unknown-linux-gnu \ + --target-dir "{{ cargo_dir }}" + cargo test \ --release \ --all-features \ From b9aad499811ad442b880708672968f5863d3a1de Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Tue, 9 May 2023 20:52:40 -0700 Subject: [PATCH 2/5] cleanup: forbid unsafe --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f32ca31..b0bc378 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,7 +76,7 @@ fn _main() -> Result<(), ArgyleError> { ``` */ -#![deny(unsafe_code)] +#![forbid(unsafe_code)] #![warn( clippy::filetype_is_file, From 55174febf0ff2e052fd0ab8a76561dcab2a4c7ca Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 18 May 2023 20:06:33 -0700 Subject: [PATCH 3/5] ci: test MSRV --- .github/workflows/ci.yaml | 4 +-- .github/workflows/msrv.yaml | 53 +++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/msrv.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 76ed03f..d82ce72 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,9 +2,9 @@ name: Build on: push: - branches: [ master ] + branches: [] pull_request: - branches: [ master ] + branches: [] defaults: run: diff --git a/.github/workflows/msrv.yaml b/.github/workflows/msrv.yaml new file mode 100644 index 0000000..1172ee8 --- /dev/null +++ b/.github/workflows/msrv.yaml @@ -0,0 +1,53 @@ +name: MSRV + +on: + push: + branches: [] + pull_request: + branches: [] + +defaults: + run: + shell: bash + +env: + CARGO_TERM_COLOR: always + +jobs: + all: + name: All + + strategy: + matrix: + target: + - x86_64-unknown-linux-gnu + - x86_64-apple-darwin + include: + - target: x86_64-unknown-linux-gnu + os: ubuntu-latest + - target: x86_64-apple-darwin + os: macos-latest + + runs-on: ${{matrix.os}} + + env: + RUSTFLAGS: "-D warnings" + + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + - uses: taiki-e/install-action@v2 + with: + tool: cargo-msrv + + - name: Info + run: | + rustup --version + cargo --version + cargo clippy --version + + - name: MSRV + run: | + cargo msrv verify -- cargo check --all-features From 9479aec8b2ae17b4578b57cdc3868454236fc25e Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 1 Jun 2023 13:07:26 -0700 Subject: [PATCH 4/5] bump: brunch 0.5 (dev) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6bf995d..49127d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ man-dir = "./" credits-dir = "./" [dev-dependencies] -brunch = "0.4.*" +brunch = "0.5.*" [[bench]] name = "fm_keykind" From 548c8a4db80c462c787a7021cf7a401d17520c9c Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 1 Jun 2023 13:09:11 -0700 Subject: [PATCH 5/5] bump: 0.6.8 --- CHANGELOG.md | 10 ++++++++++ CREDITS.md | 4 ++-- Cargo.toml | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae12358..7fb1878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ +## [0.6.8](https://github.com/Blobfolio/argyle/releases/tag/v0.6.8) - 2023-06-01 + +### Changed + +* Bump dev dependencies +* CI: test in debug and release modes +* CI: test MSRV + + + ## [0.6.7](https://github.com/Blobfolio/argyle/releases/tag/v0.6.7) - 2023-02-07 ### Changed diff --git a/CREDITS.md b/CREDITS.md index d44170d..566a6f9 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,6 +1,6 @@ # Project Dependencies Package: argyle - Version: 0.6.7 - Generated: 2023-02-08 04:34:24 UTC + Version: 0.6.8 + Generated: 2023-06-01 20:08:59 UTC This package has no dependencies. diff --git a/Cargo.toml b/Cargo.toml index 49127d7..a2f786f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "argyle" -version = "0.6.7" +version = "0.6.8" authors = ["Blobfolio, LLC. "] edition = "2021" rust-version = "1.62"