-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.21 KB
/
build-linux-mac.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
name: Release lollipop for linux/mac
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
platform:
- amd64
- arm64
include:
- os: ubuntu-latest
osName: linux
- os: macos-latest
osName: macos
- platform: amd64
arch: x64
- platform: arm64
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup nodeJS
uses: actions/setup-node@v4
with:
node-version: "latest"
- name: Build lollipop
run: |
# install dependencies and build
npm i
npm run make-${{ matrix.osName }}-${{ matrix.arch }}
- name: Upload linux/mac builds to GH release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: build/lollipop-${{ matrix.osName }}-${{ matrix.arch }}
asset_name: lollipop-${{ matrix.osName }}-${{ matrix.arch }}
prerelease: true