Skip to content

Commit 00b4231

Browse files
committed
add github build workflow
1 parent 6599fb0 commit 00b4231

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Rust Build Win32
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:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Rust toolchain
20+
uses: dtolnay/rust-toolchain@stable
21+
with:
22+
toolchain: stable
23+
targets: i686-pc-windows-msvc
24+
25+
- name: Build
26+
run: |
27+
cargo build --release --target i686-pc-windows-msvc
28+
cargo build --release --target i686-pc-windows-msvc --example omsilogger
29+
30+
- name: Upload Artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: omsi2komsi-win32-binaries
34+
path: |
35+
target/i686-pc-windows-msvc/release/omsi2komsi.dll
36+
target/i686-pc-windows-msvc/release/examples/omsilogger.dll

0 commit comments

Comments
 (0)