Skip to content

Commit 8833781

Browse files
committed
adding target as binary suffix
1 parent 42d9b1b commit 8833781

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Run tests
2020
run: cargo test
2121
- name: Build
22-
run: cargo build --profile release
22+
run: cargo build -r --target x86_64-unknown-linux-gnu
2323
- name: Publish to crates.io
2424
env:
2525
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
@@ -28,5 +28,6 @@ jobs:
2828
env:
2929
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3030
run: |
31+
cp target/release/http_status_code_check target/release/http_status_code_check-x86_64-unknown-linux-gnu
3132
ver=$(cat Cargo.toml | grep -e '^version = ".*"$' | sed 's/version = "\(.*\)"/\1/')
32-
gh release create -d --title v$ver --notes-file RELEASE.md $ver target/release/http_status_code_check
33+
gh release create -d --title v$ver --notes-file RELEASE.md $ver target/release/http_status_code_check-x86_64-unknown-linux-gnu

0 commit comments

Comments
 (0)