Skip to content

Commit 8d5c420

Browse files
committed
cargo: Add more metadat, fix release build
1 parent b1dbcd7 commit 8d5c420

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
command: build
7474
args: >-
7575
--target ${{ matrix.target }}
76+
--locked
7677
--release
7778
-Z build-std=std,panic_abort
7879
-Z build-std-features=panic_immediate_abort
@@ -105,6 +106,9 @@ jobs:
105106
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
106107
steps:
107108

109+
- name: Checkout code
110+
uses: actions/checkout@v3
111+
108112
- name: Download archives
109113
uses: actions/download-artifact@v3
110114
with:

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name = "restack"
33
version = "0.6.0"
44
edition = "2021"
55
description = "Teaches git rebase --interactive about your branches."
6+
homepage = "https://github.com/abhinav/restack"
7+
documentation = "https://github.com/abhinav/restack/blob/main/README.md"
8+
repository = "https://github.com/abhinav/restack"
9+
license = "MIT"
610

711
[[bin]]
812
name = "restack"

justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ _build_flags := if _release == "1" { "--release" } else { "" }
77

88
# build the binary
99
build:
10-
cargo build {{_build_flags}}
10+
cargo build --locked {{_build_flags}}
1111

1212
# run all tests
1313
test *args:
14-
cargo nextest run --workspace --no-fail-fast {{args}}
14+
cargo nextest run --locked --workspace --no-fail-fast {{args}}
1515

1616
_llvm_cov_report_flags := "--hide-instantiations"
1717

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

2323
# generate an HTML coverage report

0 commit comments

Comments
 (0)