Skip to content

debugging macos release #103

debugging macos release

debugging macos release #103

name: Mac OS X release deployment
on:
push:
branches: [ master, debug-mac-ci ]
jobs:
build-and-deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install-dependencies
run: |
brew install gcc@11 cmake qt@5 p7zip wget gpg [email protected]
pip3 install pygithub --break-system-packages
curl https://raw.githubusercontent.com/muttleyxd/github-release/master/github-release.py -o github-release
chmod +x github-release
- name: make build directory
run: mkdir build && cd build
- name: cmake
run: cd build && cmake .. -DCPACK_GENERATOR=DragNDrop -DCMAKE_PREFIX_PATH='/usr/local;/opt/homebrew;/opt/homebrew/opt/qt@5;/opt/homebrew/opt/[email protected]' -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Werror -static-libgcc" -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DRUN_TESTS=ON -DDEVELOPER_MODE=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12
- name: build
run: cd build && make -j$(sysctl -n hw.ncpu)
- name: run tests
run: cd build && ctest --output-on-failure
- name: make package
run: |
cd build
make package
export COMMIT_COUNT=`git rev-list --count HEAD`
export COMMIT_HASH=`git rev-parse --verify HEAD | cut -c -7`
mv arma3-unix-launcher-*.dmg arma3-unix-launcher-$COMMIT_COUNT.$COMMIT_HASH-mac_os_x-x86_64.dmg
- name: deploy release
if: github.ref == 'refs/heads/master'
run: ./github-release --token ${{ secrets.actionrelease }} --repository muttleyxd/arma3-unix-launcher --file-glob "build/*.dmg"