Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Setup distributable binary #12

Merged
merged 3 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Build and Test Homebrew MetaCall

on:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -59,3 +63,11 @@ jobs:
# Test Homebrew recipe
- name: Test
run: ./test.sh

# Release package
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
fail_on_unmatched_files: true
files: pkg/*.pkg
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ fi
# Build metacall brew recipe
export HOMEBREW_NO_AUTO_UPDATE=1
brew install ./metacall.rb --build-from-source --overwrite -v

# Build distributable binary using brew pkg
mkdir pkg && cd pkg
brew tap timsutton/formulae
brew install brew-pkg
brew pkg --with-deps --without-kegs metacall
Loading