Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
mv phantomake phantomake-${{ matrix.binary-name }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: phantomake-${{ matrix.binary-name }} | |
path: phantomake-${{ matrix.binary-name }} | |
- name: Upload binary to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: phantomake-${{ matrix.binary-name }} | |
upload-source: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Make source tarball | |
run: | | |
tar -czvf source.tar.gz ./ | |
- name: Upload tarball to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: source.tar.gz |