Skip to content

Commit 9a28863

Browse files
committed
Better binary uploading
1 parent 3f3eef7 commit 9a28863

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,29 @@ jobs:
6262
uses: hecrj/setup-rust-action@v1
6363
- name: Build debug
6464
run: cargo build
65-
- name: Upload debug build
65+
- name: Upload debug build (Windows)
6666
uses: actions/upload-artifact@v2
6767
with:
68-
path: ./target/debug/rust-script*
68+
path: ./target/debug/rust-script
69+
name: windows-binary
70+
- name: Upload Windows debug build
71+
if: runner.os == 'Windows'
72+
uses: actions/upload-artifact@v2
73+
with:
74+
path: ./target/debug/rust-script.exe
75+
name: windows-binary
76+
- name: Upload macOS debug build
77+
if: runner.os == 'macOS'
78+
uses: actions/upload-artifact@v2
79+
with:
80+
path: ./target/debug/rust-script
81+
name: mac-binary
82+
- name: Upload Linux debug build
83+
if: runner.os == 'Linux'
84+
uses: actions/upload-artifact@v2
85+
with:
86+
path: ./target/debug/rust-script
87+
name: linux-binary
6988

7089
security-audit:
7190
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)