This repository was archived by the owner on Mar 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.73 KB
/
ci.yml
File metadata and controls
62 lines (51 loc) · 1.73 KB
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
53
54
55
56
57
58
59
60
61
62
name: CI
env:
LLVM_MINGW_VERSION: 20260311
on:
push:
branches: ["main", "stable/*"]
pull_request:
branches: ["main", "stable/*"]
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Cache llvm-mingw
id: cache-llvm-linux
uses: actions/cache@v4
with:
path: /opt/llvm-mingw
key: llvm-mingw-${{ runner.os }}-${{ env.LLVM_MINGW_VERSION }}
- name: Install llvm-mingw ${{ env.LLVM_MINGW_VERSION }}
if: steps.cache-llvm-linux.outputs.cache-hit != 'true'
run: |
mkdir -p /opt/llvm-mingw
cd /opt/llvm-mingw
curl -L https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_MINGW_VERSION}/llvm-mingw-${LLVM_MINGW_VERSION}-ucrt-ubuntu-22.04-x86_64.tar.xz | tar xJ --strip-components=1
- name: Setup llvm-mingw
run: |
echo "/opt/llvm-mingw/bin" >> $GITHUB_PATH
- name: Setup rust targets
run: |
rustup set auto-self-update disable
rustup target add x86_64-pc-windows-gnullvm
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- uses: actions/checkout@v6
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install NPM dependencies
run: npm install
- name: Build
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
run: |
npm run tauri -- build --target x86_64-pc-windows-gnullvm
mkdir artifacts
cp src-tauri/target/x86_64-pc-windows-gnullvm/release/*.exe artifacts
cp src-tauri/target/x86_64-pc-windows-gnullvm/release/*.dll artifacts
- uses: actions/upload-artifact@v6
with:
name: Artifact
path: artifacts