Skip to content

Commit b87e9fa

Browse files
committed
Modify the workflow
1 parent c434331 commit b87e9fa

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/rust.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Rust CI
2+
13
on:
24
push:
35
branches: [ "main" ]
@@ -9,7 +11,12 @@ env:
911

1012
jobs:
1113
build:
12-
runs-on: ubuntu-latest
14+
name: Build (${{ matrix.os }})
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ ubuntu-latest, windows-latest ]
1320

1421
steps:
1522
- uses: actions/checkout@v4
@@ -34,12 +41,9 @@ jobs:
3441
- name: Build release
3542
run: cargo build --release --verbose
3643

37-
- name: Run tests
38-
run: cargo test --verbose
39-
40-
- name: Upload build artifact
44+
- name: Upload binary
4145
uses: actions/upload-artifact@v4
4246
with:
43-
name: rust-build-${{ runner.os }}
44-
path: target/release/
45-
if-no-files-found: error
47+
name: PacMine-${{ runner.os }}
48+
path: |
49+
target/release/PacMine${{ runner.os == 'Windows' && '.exe' || '' }}

0 commit comments

Comments
 (0)