Skip to content

Merge pull request #103 from tcdude/fix-stdint #130

Merge pull request #103 from tcdude/fix-stdint

Merge pull request #103 from tcdude/fix-stdint #130

Workflow file for this run

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