Skip to content

Commit

Permalink
CI: Setup distributable binary (metacall#12)
Browse files Browse the repository at this point in the history
* wip: fix commits

* fix: workflow order

* Release do

---------

Co-authored-by: Vicente Eduardo Ferrer Garcia <[email protected]>
  • Loading branch information
FirePing32 and viferga committed Mar 18, 2024
1 parent fbbef8c commit 771fa5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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

0 comments on commit 771fa5c

Please sign in to comment.