-
-
Notifications
You must be signed in to change notification settings - Fork 8
52 lines (43 loc) · 1.28 KB
/
build_win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build Windows
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DYN_NAME: flx_rs_core
EXT: .dll
NEW_NAME: flx-rs
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-pc-windows-msvc
- aarch64-pc-windows-msvc
steps:
- uses: actions/checkout@v4
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- name: Install LLVM and Clang
run: .github/script/setup-llvm
- name: Build binaries
run: |
cd core
rustup target install ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}
- name: Rename dynamic module
run: Rename-Item -Path core/target/${{ matrix.target }}/release/${{ env.DYN_NAME }}${{ env.EXT }} -NewName ${{ env.NEW_NAME }}.${{ matrix.target }}${{ env.EXT }}
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: ${{ env.NEW_NAME }}.${{ matrix.target }}
path: core/target/${{ matrix.target }}/release/${{ env.NEW_NAME }}.${{ matrix.target }}${{ env.EXT }}