-
Notifications
You must be signed in to change notification settings - Fork 38
47 lines (46 loc) · 1.67 KB
/
osx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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##*/}