Skip to content

Commit

Permalink
cargo: Add more metadat, fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Sep 25, 2022
1 parent b1dbcd7 commit 8d5c420
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
command: build
args: >-
--target ${{ matrix.target }}
--locked
--release
-Z build-std=std,panic_abort
-Z build-std-features=panic_immediate_abort
Expand Down Expand Up @@ -105,6 +106,9 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Download archives
uses: actions/download-artifact@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name = "restack"
version = "0.6.0"
edition = "2021"
description = "Teaches git rebase --interactive about your branches."
homepage = "https://github.com/abhinav/restack"
documentation = "https://github.com/abhinav/restack/blob/main/README.md"
repository = "https://github.com/abhinav/restack"
license = "MIT"

[[bin]]
name = "restack"
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ _build_flags := if _release == "1" { "--release" } else { "" }

# build the binary
build:
cargo build {{_build_flags}}
cargo build --locked {{_build_flags}}

# run all tests
test *args:
cargo nextest run --workspace --no-fail-fast {{args}}
cargo nextest run --locked --workspace --no-fail-fast {{args}}

_llvm_cov_report_flags := "--hide-instantiations"

# generate a coverage report
cover:
cargo llvm-cov nextest --workspace --lcov --output-path lcov.info --no-fail-fast
cargo llvm-cov nextest --workspace --locked --lcov --output-path lcov.info --no-fail-fast
cargo llvm-cov report {{_llvm_cov_report_flags}}

# generate an HTML coverage report
Expand Down

0 comments on commit 8d5c420

Please sign in to comment.