This repository was archived by the owner on Aug 9, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (43 loc) · 1.33 KB
/
mac.yml
File metadata and controls
48 lines (43 loc) · 1.33 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
on:
release:
types: [created]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
arch: ['x64', 'arm64']
steps:
- uses: actions/setup-node@master
with:
node-version: "16.x"
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Build Qode binary
run: TARGET_ARCH=${{ matrix.arch }} node build.js
env:
SYNC_GIT_SUBMODULE: 1
- name: Compress files
uses: a7ul/tar-action@v1.0.2
with:
command: c
cwd: ./node/out/Release
files: |
./qode
outPath: qode-darwin-${{ matrix.arch }}-${{github.event.release.tag_name}}.tar.gz
- uses: actions/upload-artifact@v1
with:
name: qode-darwin-${{ matrix.arch }}-${{github.event.release.tag_name}}.tar.gz
path: qode-darwin-${{ matrix.arch }}-${{github.event.release.tag_name}}.tar.gz
- name: Release
uses: softprops/action-gh-release@master
with:
files: qode-darwin-${{ matrix.arch }}-${{github.event.release.tag_name}}.tar.gz
tag_name: ${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}