Skip to content

Commit

Permalink
Add mac test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubitect committed Jan 28, 2024
1 parent beaa0f3 commit f06dd99
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/macos-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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@v3
with:
aqtversion: '==3.1.*'
version: '5.15.2'
archives: 'x86_64 qtbase qttools'
cache: true
setup-python: false

- name: Build
working-directory: ${{env.SOURCE_DIR}}
run: |
qmake CONFIG+=release ${{env.SOURCE_DIR}}
make
- name: Deploy
working-directory: ${{env.SOURCE_DIR}}
run: |
macdeployqt ${{env.PROG}}.app -dmg -no-plugins
./${{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}}-${{github.ref_name}}-macos
path: |
${{env.SOURCE_DIR}}/${{env.PROG}}.app
${{env.SOURCE_DIR}}/${{env.PROG}}.dmg
1 change: 1 addition & 0 deletions .github/workflows/windows-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
mkdir ${{env.PROG}}
copy ${{env.SOURCE_DIR}}\release\${{env.PROG}}.exe ${{env.PROG}}
windeployqt --dir ${{env.PROG}} ${{env.SOURCE_DIR}}\release\${{env.PROG}}.exe --compiler-runtime --no-translations --no-system-d3d-compiler --no-opengl-sw --no-angle
${{env.SOURCE_DIR}}\${{env.PROG}}\${{env.PROG}}.exe --version
- name: Save build artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit f06dd99

Please sign in to comment.