Skip to content

Commit da90aa7

Browse files
committed
Push oggenc
1 parent c63210f commit da90aa7

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

.github/workflows/macos.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,39 @@ jobs:
4343
run: strip -u -r oggenc/oggenc
4444
- name: Sign
4545
run: codesign --sign - --timestamp --force oggenc/oggenc
46+
- name: Get KhaTools_macos_arm64
47+
run: git clone https://github.com/Kode/KhaTools_macos_arm64.git --depth 1
48+
- name: Copy binary
49+
run: cp oggenc/oggenc KhaTools_macos_arm64/oggenc
50+
- name: Set name
51+
run: git config --global user.name "Robbot"
52+
- name: Set email
53+
run: git config --global user.email "robbot2019@robdangero.us"
54+
- name: Add binary
55+
run: git -C KhaTools_macos_arm64 add .
56+
- name: Commit binary
57+
id: commit
58+
continue-on-error: true
59+
run: git -C KhaTools_macos_arm64 commit -a -m "Update oggenc binary to $GITHUB_SHA."
60+
- name: Tag binary
61+
if: steps.commit.outcome == 'success'
62+
run: git -C KhaTools_macos_arm64 tag oggenc_$GITHUB_SHA
63+
- name: Push binary
64+
id: push1
65+
if: steps.commit.outcome == 'success'
66+
continue-on-error: true
67+
run: git -C KhaTools_macos_arm64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KhaTools_macos_arm64.git main --tags
68+
env:
69+
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
70+
- name: Pull
71+
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
72+
run: git -C KhaTools_macos_arm64 pull --no-rebase
73+
- name: Push binary again
74+
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
75+
continue-on-error: true
76+
run: git -C KhaTools_macos_arm64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KhaTools_macos_arm64.git main --tags
77+
env:
78+
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
4679

4780
build-x64:
4881
runs-on: macos-13
@@ -78,3 +111,36 @@ jobs:
78111
run: strip -u -r oggenc/oggenc
79112
- name: Sign
80113
run: codesign --sign - --timestamp --force oggenc/oggenc
114+
- name: Get KhaTools_macos_x64
115+
run: git clone https://github.com/Kode/KhaTools_macos_x64.git --depth 1
116+
- name: Copy binary
117+
run: cp oggenc/oggenc KhaTools_macos_x64/oggenc
118+
- name: Set name
119+
run: git config --global user.name "Robbot"
120+
- name: Set email
121+
run: git config --global user.email "robbot2019@robdangero.us"
122+
- name: Add binary
123+
run: git -C KhaTools_macos_x64 add .
124+
- name: Commit binary
125+
id: commit
126+
continue-on-error: true
127+
run: git -C KhaTools_macos_x64 commit -a -m "Update oggenc binary to $GITHUB_SHA."
128+
- name: Tag binary
129+
if: steps.commit.outcome == 'success'
130+
run: git -C KhaTools_macos_x64 tag oggenc_$GITHUB_SHA
131+
- name: Push binary
132+
id: push1
133+
if: steps.commit.outcome == 'success'
134+
continue-on-error: true
135+
run: git -C KhaTools_macos_x64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KhaTools_macos_x64.git main --tags
136+
env:
137+
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}
138+
- name: Pull
139+
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
140+
run: git -C KhaTools_macos_x64 pull --no-rebase
141+
- name: Push binary again
142+
if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success'
143+
continue-on-error: true
144+
run: git -C KhaTools_macos_x64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KhaTools_macos_x64.git main --tags
145+
env:
146+
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }}

0 commit comments

Comments
 (0)