Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
add strip and artifact upload
  • Loading branch information
hw-lunemann authored Jun 16, 2022
1 parent d50b2e1 commit 3684336
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,26 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
run: cargo build --release --verbose
- name: strip
run: strip target/release/automachef-save
- name: Upload Binary as artifact
uses: actions/upload-artifact@v3
with:
name: automachef-save-linux-amd64
path: target/release/automachef-save

build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
run: cargo build --release --verbose
- name: strip
run: strip target/release/automachef-save.exe
- name: Upload Binary as artifact
uses: actions/upload-artifact@v3
with:
name: automachef-save-windows-amd64
path: target/release/automachef-save.exe

0 comments on commit 3684336

Please sign in to comment.