Skip to content

Workflow file for this run

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