Skip to content

Commit c1adc31

Browse files
Add main branch builds
1 parent 3cd93d7 commit c1adc31

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/rust.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build-linux:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build release
18+
run: cargo build --release --verbose
19+
- name: Upload artifact
20+
uses: actions/[email protected]
21+
with:
22+
name: OpenFusionMap-linux
23+
path: target/release/openfusionmap
24+
if-no-files-found: error
25+
build-windows:
26+
runs-on: windows-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Build
30+
run: cargo build --release --verbose
31+
- name: Upload artifact
32+
uses: actions/[email protected]
33+
with:
34+
name: OpenFusionMap-windows
35+
path: |
36+
target/release/openfusionmap.exe
37+
target/release/openfusionmap.pdb
38+
if-no-files-found: error
39+

0 commit comments

Comments
 (0)