Replace pkg
with Node SEA
#136
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: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: yarn | ||
- run: yarn lint | ||
build-linux: | ||
name: Build Linux | ||
needs: [lint] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: build | ||
with: | ||
node-version: 20.x | ||
run: | | ||
Check failure on line 35 in .github/workflows/ci.yaml
|
||
yarn | ||
make linux | ||
- name: package | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: | | ||
zip -r vivify-linux.zip bin/linux/* | ||
build-macos: | ||
name: Build MacOS | ||
needs: [lint] | ||
runs-on: macos-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: build | ||
run: | | ||
yarn | ||
make macos | ||
- name: package | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: | | ||
zip -r vivify-macos.zip bin/macos/* | ||
release: | ||
name: Release | ||
needs: [build-linux, build-macos] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: release | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
files: vivify-*.zip |