Skip to content

Commit 0e45015

Browse files
committed
Add artifact build
1 parent 59904f8 commit 0e45015

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/rust.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,30 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions-rust-lang/setup-rust-toolchain@v1
19-
- name: Build
19+
- name: Build (Debug)
2020
run: cargo build --verbose
2121
- name: Run tests
2222
run: cargo test --verbose
23+
- name: Build (release)
24+
run: cargo build --target x86_64-unknown-linux-gnu
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: Linux Build
28+
path: target/x86_64-unknown-linux-gnu/release/rtracy
2329

2430
build-windows:
2531
runs-on: windows-latest
2632

2733
steps:
2834
- uses: actions/checkout@v4
2935
- uses: actions-rust-lang/setup-rust-toolchain@v1
30-
- name: Build
36+
- name: Build (Debug)
3137
run: cargo build --verbose
3238
- name: Run tests
3339
run: cargo test --verbose
40+
- name: Build (release)
41+
run: cargo build --target x86_64-pc-windows-msvc
42+
- uses: actions/upload-artifact@v4
43+
with:
44+
name: Windows Build
45+
path: target/x86_64-pc-windows-msvc/release/rtracy.exe

0 commit comments

Comments
 (0)