-
Notifications
You must be signed in to change notification settings - Fork 56
48 lines (40 loc) · 1.14 KB
/
build.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
name: "Build"
on:
workflow_dispatch:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build-omp-launcher:
name: Windows build
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Install frontend dependencies
run: yarn install
- name: Install rust i686-pc-windows-msvc target
run: rustup target add i686-pc-windows-msvc
- name: Build project
run: yarn release
- name: Generate artifact name
id: vars
shell: bash
run: |
artifact_name="open.mp-launcher-win-${GITHUB_RUN_ID}"
echo "artifact_name=${artifact_name}" >> $GITHUB_OUTPUT
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.artifact_name }}
path: src-tauri/target/i686-pc-windows-msvc/release/omp-launcher.exe
if-no-files-found: error