-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (71 loc) · 2.28 KB
/
build-artifacts.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
name: Build Artifacts
on:
pull_request:
paths:
- '.github/workflows/build-artifacts.yml'
- '**'
jobs:
build-artifacs:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: install nightly toolchain
uses: actions-rs/toolchain@v1
with:
default: true
override: true
toolchain: nightly
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: install libs (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0 libusb-1.0-0
- name: install deps
working-directory: ./
run: |
pnpm install --no-frozen-lockfile
- name: build artifacts
working-directory: ./
run: |
pnpm run tauri build
- uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'
with:
name: linux-deb
path: ./src-tauri/target/release/bundle/deb/meowpad-configurator_*.deb
- uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'
with:
name: linux-appimage
path: ./src-tauri/target/release/bundle/appimage/meowpad-configurator_*.AppImage
- uses: actions/upload-artifact@v2
if: matrix.platform == 'windows-latest'
with:
name: windows-exe
path: ./src-tauri/target/release/MeowpadConfigurator.exe
- uses: actions/upload-artifact@v2
if: matrix.platform == 'windows-latest'
with:
name: windows-msi
path: ./src-tauri/target/release/bundle/msi/*
- uses: actions/upload-artifact@v2
if: matrix.platform == 'macos-latest'
with:
name: macos-app
path: ./src-tauri/target/release/bundle/macos/MeowpadConfigurator.app