Add missing brace (#94) #52
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
# Compile and pull osx plugin | |
name: osx | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Compile and Push Plugin | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Plugin | |
run: | | |
# brew install xx | |
git submodule update --init | |
cd lib/spookyhash && git checkout spookyhash-1.0.6 && cd - | |
make clean SPI=2.0 SPIVER=v2 && make osx SPI=2.0 SPIVER=v2 GCC=gcc | |
make clean SPI=3.0 SPIVER=v3 && make osx SPI=3.0 SPIVER=v3 GCC=gcc | |
- name: Commit OSX Plugin | |
run: | | |
shasum build/gtools_macosx_v3.plugin | |
shasum build/gtools_macosx_v2.plugin | |
# | |
otool -L build/gtools_macosx_v3.plugin | |
otool -L build/gtools_macosx_v2.plugin | |
# | |
cp -f build/gtools_macosx_v3.plugin lib/plugin/gtools_macosx_v3.plugin | |
cp -f build/gtools_macosx_v2.plugin lib/plugin/gtools_macosx_v2.plugin | |
# | |
git config --global user.name 'Mauricio Caceres' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.COMPILE_TOKEN }}@github.com/${{ github.repository }} | |
# | |
git add build/gtools_macosx_v3.plugin | |
git add build/gtools_macosx_v2.plugin | |
git add lib/plugin/gtools_macosx_v3.plugin | |
git add lib/plugin/gtools_macosx_v2.plugin | |
# | |
echo ${GITHUB_REF##*/} | |
[ -n "$(git status --porcelain)" ] && git commit -m "[Automated Commit] OSX plugin" | |
git fetch | |
git push -f origin HEAD:${GITHUB_REF##*/} |