-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (99 loc) · 3.95 KB
/
build.yml
File metadata and controls
109 lines (99 loc) · 3.95 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Build Spatial Protocol Mapper
on:
push:
branches: [ main, master, dev, develop ]
tags:
- 'v*'
pull_request:
workflow_dispatch:
jobs:
build:
name: Package Custom App - ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux-x86_64
artifact-name: linux-x86_64
- os: macos-latest
platform: macos-arm
artifact-name: macos-arm
- os: windows-latest
platform: windows
artifact-name: windows
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: ossia score build
id: score
uses: ossia/actions/custom-score-build@master
with:
cmake-options: -DSCORE_ENABLE_ADDONS=score-addon-spatgris -DSCORE_DISABLE_PLUGINS=score-plugin-faust,score-plugin-jit,score-plugin-vst,score-plugin-vst3,score-plugin-clap,score-plugin-lv2,score-plugin-avnd,score-plugin-pd,score-plugin-ysfx,score-plugin-packagemanager,score-plugin-controlsurface,score-plugin-gfx,score-plugin-media,score-plugin-spline3d,score-plugin-recording,score-plugin-nodal,score-plugin-spline,score-plugin-mapping -DSCORE_QT_PLUGINS_NO_QTQUICK3D=1 -DSCORE_QT_PLUGINS_NO_IMAGEFORMATS=1
macos-certificate-base64: ${{ secrets.MAC_CERT_B64 }}
macos-certificate-password: ${{ secrets.MAC_CERT_PASSWORD }}
macos-notarize-team-id: ${{ secrets.MAC_NOTARIZE_TEAM_ID }}
macos-notarize-apple-id: ${{ secrets.MAC_NOTARIZE_APPLE_ID }}
macos-notarize-password: ${{ secrets.MAC_NOTARIZE_PASSWORD }}
- name: Package custom ossia score app
uses: ossia/actions/package-custom-app@master
with:
app-name: "Spatial Protocol Mapper"
qml-files:
qml/Main.qml
qml
score-build-id: ${{ steps.score.outputs.artifact-id }}
platforms: "${{ matrix.platform }}"
# App metadata
app-organization: "SAT"
app-domain: "sat.qc.ca"
app-environment: environment
app-identifier: "ca.qc.sat.oscremapper"
app-description: "Remap OSC"
app-copyright: "Société des Arts Technologiques"
app-version: "1.0"
app-png: "resources/logo.png"
app-ico: "resources/logo.ico"
app-icns: "resources/logo.icns"
macos-certificate-base64: ${{ secrets.MAC_CERT_B64 }}
macos-certificate-password: ${{ secrets.MAC_CERT_PASSWORD }}
macos-notarize-team-id: ${{ secrets.MAC_NOTARIZE_TEAM_ID }}
macos-notarize-apple-id: ${{ secrets.MAC_NOTARIZE_APPLE_ID }}
macos-notarize-password: ${{ secrets.MAC_NOTARIZE_PASSWORD }}
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: app-${{ matrix.artifact-name }}
path: packages/
retention-days: 30
release:
name: Create Release
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: all-packages
pattern: app-*
merge-multiple: true
- name: Create Release (on tags)
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: all-packages/*
draft: false
prerelease: false
generate_release_notes: true
- name: Upload to Continuous Release (on main/master)
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v2
with:
name: "Continuous Build"
tag_name: "continuous"
files: all-packages/*
draft: false
prerelease: true
generate_release_notes: false