Remove the n parameter for Kong #270
This file contains 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: | |
runs-on: macOS-13 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.2' | |
- name: Configure | |
run: ./configure --openssl-no-asm --without-intl --dest-cpu=x86_64 | |
- name: Compile | |
run: make -j3 | |
- name: Get KoreTools_macos | |
run: git clone https://github.com/Kode/KoreTools_macos.git | |
- name: Copy binary | |
run: cp out/Release/node KoreTools_macos/kmake | |
- name: Set name | |
run: git config --global user.name "Robbot" | |
- name: Set email | |
run: git config --global user.email "robbot2019@robdangero.us" | |
- name: Add binary | |
run: git -C KoreTools_macos add . | |
- name: Commit binary | |
id: commit | |
continue-on-error: true | |
run: git -C KoreTools_macos commit -a -m "Update macOS binary to $GITHUB_SHA." | |
- name: Tag binary | |
if: steps.commit.outcome == 'success' | |
run: git -C KoreTools_macos tag macos_$GITHUB_SHA | |
- name: Push binary | |
id: push1 | |
if: steps.commit.outcome == 'success' | |
continue-on-error: true | |
run: git -C KoreTools_macos push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos.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 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 push https://Kode-Robbot:$ROBBOT_PASS@github.com/Kode/KoreTools_macos.git main --tags | |
env: | |
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }} |