-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (53 loc) · 1.44 KB
/
build-binary.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
name: Build phantomake binary
on:
push:
tags:
- '*'
jobs:
build-binary:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
binary-name: macos
- os: ubuntu-latest
binary-name: linux
permissions:
contents: write
steps:
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Check out repository code
uses: actions/checkout@v4
- name: Bun install
run: |
bun install
- name: Build phantomake
run: |
bun build-cli
tar -zcvf phantomake-${{ matrix.binary-name }}.tar.gz phantomake
- uses: actions/upload-artifact@v3
with:
name: phantomake-${{ matrix.binary-name }}.tar.gz
path: phantomake-${{ matrix.binary-name }}.tar.gz
- name: Upload binary to release
uses: softprops/action-gh-release@v1
with:
files: phantomake-${{ matrix.binary-name }}.tar.gz
upload-source:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Make source tarball
run: |
git archive --format=tar.gz -o source.tar.gz --prefix=phantomake/ HEAD
- name: Upload tarball to release
uses: softprops/action-gh-release@v1
with:
files: source.tar.gz