Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 4d5fe6c

Browse files
committed
add build action
1 parent 5ad43eb commit 4d5fe6c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Windows i686 Build
2+
3+
on:
4+
push:
5+
branches:
6+
- v1
7+
pull_request:
8+
branches:
9+
- v1
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: windows-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Rust toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: stable
24+
target: i686-pc-windows-msvc
25+
override: true
26+
27+
- name: Build Release
28+
uses: actions-rs/cargo@v1
29+
with:
30+
command: build
31+
args: --target i686-pc-windows-msvc --release
32+
33+
- name: Process build artifacts
34+
run: |
35+
mkdir dist
36+
cp target/i686-pc-windows-msvc/release/*.exe dist/
37+
cp target/i686-pc-windows-msvc/release/*.dll dist/ || true
38+
cp target/i686-pc-windows-msvc/release/*.pdb dist/ || true
39+
40+
- name: Upload build artifacts
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: windows-i686-build
44+
path: dist/
45+
retention-days: 3

0 commit comments

Comments
 (0)