-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (39 loc) · 1.27 KB
/
macos_bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build MacOS package
on:
create:
tags:
- 'v*'
env:
BUILD_TYPE: Release
jobs:
build:
name: Build MacOS package
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: brew install boost qt ninja cmake
- name: Create GetIt project
run: cmake . -G Ninja -Dpackaging=true -DUseQt6=true -DCMAKE_CXX_FLAGS="-w"
- name: Create GetIt Bundle
run: ninja GetIt
- name: Link Qt to app bundle
run: macdeployqt ./bin/GetIt.app -timestamp -libpath=./_deps
- name: Copy icon to MacOS Bundle
run: cp ./packaging/macos/icons/getit.icns ./bin/GetIt.app/Contents/Resources
- name: Zip MacOS Bundle
run: zip -rT getit.zip ./bin/GetIt.app >> /dev/null
- name: Upload MacOS bundle as build artifact
uses: actions/[email protected]
with:
name: GetIt-MacOS-x64.zip
path: ./getit.zip
- name: Upload MacOS bundle as release artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://github.com/bartkessels/GetIt/releases/latest
asset_path: ./getit.zip
asset_name: GetIt-MacOS-x64.zip
asset_content_type: application/zip