Adjust "javasources" slightly #141
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: FreeBSD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-12 | |
name: FreeBSD build | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile in FreeBSD VM | |
env: | |
ROBBOT_PASS: ${{ secrets.ROBBOT_PASS }} | |
id: build | |
uses: vmactions/freebsd-vm@v0 | |
with: | |
release: 13.1 | |
envs: 'ROBBOT_PASS GITHUB_SHA' | |
usesh: false | |
sync: rsync | |
copyback: false | |
mem: 10240 | |
prepare: pkg install -y gmake bash python3 git | |
run: | | |
bash -c 'export CC=$(which clang) && export CXX=$(which clang++) && ./configure --openssl-no-asm --without-intl && make -j3' | |
# Get KincTools_freebsd_x64 | |
git clone https://github.com/Kode/KincTools_freebsd_x64.git | |
# Copy binary | |
cp out/Release/node KincTools_freebsd_x64/kmake | |
# Git config | |
git config --global user.name "Robbot" | |
git config --global user.email "[email protected]" | |
# Commit binary | |
git -C KincTools_freebsd_x64 add . && set _commit=0 || set _commit=1 | |
git -C KincTools_freebsd_x64 commit -a -m "Update kmake binary to $GITHUB_SHA." && set _commit=0 || set _commit=1 | |
# Tag binary | |
if ( $_commit == 0 ) git -C KincTools_freebsd_x64 tag kmake_$GITHUB_SHA | |
# Push binary | |
git -C KincTools_freebsd_x64 push https://Kode-Robbot:[email protected]/Kode/KincTools_freebsd_x64.git main --tags && set _push1=0 || set _push1=1 | |
# Pull | |
if ( $_commit == 0 && $_push1 == 1 ) git -C KincTools_freebsd_x64 pull --no-rebase | |
# Push again | |
if ( $_commit == 0 && $_push1 == 1 ) git -C KincTools_freebsd_x64 push https://Kode-Robbot:[email protected]/Kode/KincTools_freebsd_x64.git main --tags || true |