-
Notifications
You must be signed in to change notification settings - Fork 52
46 lines (39 loc) · 1.07 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
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
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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/release/omp-launcher.exe
if-no-files-found: error