diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d2491b..64b35a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,6 +52,15 @@ jobs: brew cleanup --prune-prefix sudo rm -rf $(brew --repo homebrew/core) + # Save distributable as Artifact + - name: Save Distributable + uses: actions/upload-artifact@v2 + with: + name: metacall + path: pkg/*.pkg + retention-days: 1 + if-no-files-found: error + # Build Homebrew recipe - name: Build run: ./build.sh diff --git a/build.sh b/build.sh index 795fea6..63d54cb 100755 --- a/build.sh +++ b/build.sh @@ -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