Build release binary on macos-latest to be used for other actions #7
Workflow file for this run
This file contains hidden or 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 release binary on macos-latest to be used for other actions | |
on: [ workflow_dispatch ] | |
jobs: | |
build-macos-latest: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Install tools" | |
run: brew install automake mbedtls libtool | |
- name: "Build" | |
run: | | |
curl -f -o get-gauche.sh https://raw.githubusercontent.com/shirok/get-gauche/master/get-gauche.sh | |
chmod +x get-gauche.sh | |
./get-gauche.sh --prefix /usr/local --auto --sudo --keep-builddir --version latest --force | |
(cd build-*/Gauche-*; sudo make DESTDIR=`pwd`/../../package install) | |
(cd package; tar czvf ../gauche-binary-macos-latest.tar.gz .) | |
- name: "Upload" | |
run: | | |
gh release upload v1 gauche-binary-macos-latest.tar.gz --clobber | |
env: | |
GITHUB_TOKEN: ${{ github.TOKEN }} |