Skip to content

Commit 802d2eb

Browse files
committed
Do separate Mac builds
1 parent 43f9df5 commit 802d2eb

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

.github/workflows/macos.yml

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,44 +13,84 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
build:
16+
build-x64:
17+
runs-on: macOS-latest
18+
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: Get Submodules
22+
run: git submodule update --init --recursive
23+
- name: Get KoreTools_macos_x64
24+
run: git clone https://github.com/Kode/KoreTools_macos_x64.git
25+
- name: Compile
26+
run: ./KoreTools_macos_x64/kmake --compile --arch x64
27+
- name: Copy binary
28+
run: cp build/build/Release/krafix KoreTools_macos_x64/krafix
29+
- name: Set name
30+
run: git config --global user.name "Robbot"
31+
- name: Set email
32+
run: git config --global user.email "robbot2019@robdangero.us"
33+
- name: Commit binary
34+
id: commit
35+
continue-on-error: true
36+
run: git -C KoreTools_macos_x64 commit -a -m "Update krafix binary to $GITHUB_SHA."
37+
- name: Tag binary
38+
if: steps.commit.outcome == 'success'
39+
run: git -C KoreTools_macos_x64 tag krafix_$GITHUB_SHA
40+
- name: Push binary
41+
id: push1
42+
if: steps.commit.outcome == 'success'
43+
continue-on-error: true
44+
run: git -C KoreTools_macos_x64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_x64.git main --tags
45+
env:
46+
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
47+
- name: Pull
48+
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
49+
run: git -C KoreTools_macos_x64 pull --no-rebase
50+
- name: Push binary again
51+
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
52+
continue-on-error: true
53+
run: git -C KoreTools_macos_x64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_x64.git main --tags
54+
env:
55+
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
1756

57+
build-arm64:
1858
runs-on: macOS-latest
1959

2060
steps:
2161
- uses: actions/checkout@v1
2262
- name: Get Submodules
2363
run: git submodule update --init --recursive
24-
- name: Get KincTools_macos
25-
run: git clone https://github.com/Kode/KincTools_macos.git
64+
- name: Get KoreTools_macos_arm64
65+
run: git clone https://github.com/Kode/KoreTools_macos_arm64.git
2666
- name: Compile
27-
run: ./KincTools_macos/kmake --compile
67+
run: ./KoreTools_macos_arm64/kmake --compile --arch arm64
2868
- name: Copy binary
29-
run: cp build/build/Release/krafix KincTools_macos/krafix
69+
run: cp build/build/Release/krafix KoreTools_macos_arm64/krafix
3070
- name: Set name
3171
run: git config --global user.name "Robbot"
3272
- name: Set email
3373
run: git config --global user.email "robbot2019@robdangero.us"
3474
- name: Commit binary
3575
id: commit
3676
continue-on-error: true
37-
run: git -C KincTools_macos commit -a -m "Update krafix binary to $GITHUB_SHA."
77+
run: git -C KoreTools_macos_arm64 commit -a -m "Update krafix binary to $GITHUB_SHA."
3878
- name: Tag binary
3979
if: steps.commit.outcome == 'success'
40-
run: git -C KincTools_macos tag krafix_$GITHUB_SHA
80+
run: git -C KoreTools_macos_arm64 tag krafix_$GITHUB_SHA
4181
- name: Push binary
4282
id: push1
4383
if: steps.commit.outcome == 'success'
4484
continue-on-error: true
45-
run: git -C KincTools_macos push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KincTools_macos.git main --tags
85+
run: git -C KoreTools_macos_arm64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_arm64.git main --tags
4686
env:
4787
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
4888
- name: Pull
4989
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
50-
run: git -C KincTools_macos pull --no-rebase
90+
run: git -C KoreTools_macos_arm64 pull --no-rebase
5191
- name: Push binary again
5292
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
5393
continue-on-error: true
54-
run: git -C KincTools_macos push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KincTools_macos.git main --tags
94+
run: git -C KoreTools_macos_arm64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_arm64.git main --tags
5595
env:
5696
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}

0 commit comments

Comments
 (0)