Skip to content

Bump version number #26

Bump version number

Bump version number #26

name: macOS Release
on:
push:
branches:
- 'trunk'
tags:
- 'v*'
env:
PROG: cubiomes-viewer
SOURCE_DIR: ${{github.workspace}}
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
aqtversion: '==3.1.*'
version: '6.7.3'
archives: 'x86_64 qtbase qttools'
cache: true
- name: Build
working-directory: ${{env.SOURCE_DIR}}
run: |
qmake CONFIG+=release ${{env.SOURCE_DIR}}
CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" make
- name: Deploy
working-directory: ${{env.SOURCE_DIR}}
run: |
macdeployqt ${{env.PROG}}.app -dmg -no-plugins
- name: Test
working-directory: ${{env.SOURCE_DIR}}
run: |
./${{env.PROG}}.app/Contents/MacOS/${{env.PROG}} --version
otool -L ${{env.PROG}}.app/Contents/MacOS/${{env.PROG}}
- name: Save build artifact
uses: actions/upload-artifact@v4
with:
name: ${{env.PROG}}-macos
path: ${{env.SOURCE_DIR}}/${{env.PROG}}.dmg