git add #140
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: macOS | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-x64: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Get Submodules | |
| run: git submodule update --init --recursive | |
| - name: Get KoreTools_macos_x64 | |
| run: git clone https://github.com/Kode/KoreTools_macos_x64.git | |
| - name: Compile | |
| run: ./KoreTools_macos_x64/kmake --compile --arch x64 | |
| - name: Copy binary | |
| run: cp build/build/Release/krafix KoreTools_macos_x64/krafix | |
| - name: Set name | |
| run: git config --global user.name "Robbot" | |
| - name: Set email | |
| run: git config --global user.email "robbot2019@robdangero.us" | |
| - name: Git add | |
| run: git -C KoreTools_macos_x64 add . | |
| - name: Commit binary | |
| id: commit | |
| continue-on-error: true | |
| run: git -C KoreTools_macos_x64 commit -a -m "Update krafix binary to $GITHUB_SHA." | |
| - name: Tag binary | |
| if: steps.commit.outcome == 'success' | |
| run: git -C KoreTools_macos_x64 tag krafix_$GITHUB_SHA | |
| - name: Push binary | |
| id: push1 | |
| if: steps.commit.outcome == 'success' | |
| continue-on-error: true | |
| run: git -C KoreTools_macos_x64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_x64.git main --tags | |
| env: | |
| ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }} | |
| - name: Pull | |
| if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success' | |
| run: git -C KoreTools_macos_x64 pull --no-rebase | |
| - name: Push binary again | |
| if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success' | |
| continue-on-error: true | |
| run: git -C KoreTools_macos_x64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_x64.git main --tags | |
| env: | |
| ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }} | |
| build-arm64: | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Get Submodules | |
| run: git submodule update --init --recursive | |
| - name: Get KoreTools_macos_arm64 | |
| run: git clone https://github.com/Kode/KoreTools_macos_arm64.git | |
| - name: Compile | |
| run: ./KoreTools_macos_arm64/kmake --compile --arch arm64 | |
| - name: Copy binary | |
| run: cp build/build/Release/krafix KoreTools_macos_arm64/krafix | |
| - name: Set name | |
| run: git config --global user.name "Robbot" | |
| - name: Set email | |
| run: git config --global user.email "robbot2019@robdangero.us" | |
| - name: Git add | |
| run: git -C KoreTools_macos_arm64 add . | |
| - name: Commit binary | |
| id: commit | |
| continue-on-error: true | |
| run: git -C KoreTools_macos_arm64 commit -a -m "Update krafix binary to $GITHUB_SHA." | |
| - name: Tag binary | |
| if: steps.commit.outcome == 'success' | |
| run: git -C KoreTools_macos_arm64 tag krafix_$GITHUB_SHA | |
| - name: Push binary | |
| id: push1 | |
| if: steps.commit.outcome == 'success' | |
| continue-on-error: true | |
| run: git -C KoreTools_macos_arm64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_arm64.git main --tags | |
| env: | |
| ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }} | |
| - name: Pull | |
| if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success' | |
| run: git -C KoreTools_macos_arm64 pull --no-rebase | |
| - name: Push binary again | |
| if: steps.commit.outcome == 'success' && steps.push1.outcome != 'success' | |
| continue-on-error: true | |
| run: git -C KoreTools_macos_arm64 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos_arm64.git main --tags | |
| env: | |
| ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }} |