Skip to content

Commit 16882f4

Browse files
committed
ci: refactor
1 parent 1d8acb1 commit 16882f4

File tree

6 files changed

+187
-0
lines changed

6 files changed

+187
-0
lines changed

.github/workflows/build.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Build Spatial Protocol Mapper
2+
3+
on:
4+
push:
5+
branches: [ main, master, dev, develop ]
6+
tags:
7+
- 'v*'
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
name: Package Custom App - ${{ matrix.platform }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- os: ubuntu-latest
20+
platform: linux-x86_64
21+
artifact-name: linux-x86_64
22+
- os: macos-latest
23+
platform: macos-arm
24+
artifact-name: macos-arm
25+
- os: windows-latest
26+
platform: windows
27+
artifact-name: windows
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
- name: ossia score build
34+
id: score
35+
uses: ossia/actions/custom-score-build@master
36+
with:
37+
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
38+
macos-certificate-base64: ${{ secrets.MAC_CERT_B64 }}
39+
macos-certificate-password: ${{ secrets.MAC_CERT_PASSWORD }}
40+
macos-notarize-team-id: ${{ secrets.MAC_NOTARIZE_TEAM_ID }}
41+
macos-notarize-apple-id: ${{ secrets.MAC_NOTARIZE_APPLE_ID }}
42+
macos-notarize-password: ${{ secrets.MAC_NOTARIZE_PASSWORD }}
43+
44+
- name: Package custom ossia score app
45+
uses: ossia/actions/package-custom-app@master
46+
with:
47+
app-name: "Spatial Protocol Mapper"
48+
qml-files: "qml"
49+
score-build-id: ${{ steps.score.outputs.artifact-id }}
50+
platforms: "${{ matrix.platform }}"
51+
# App metadata
52+
app-organization: "SAT"
53+
app-domain: "sat.qc.ca"
54+
app-environment: environment
55+
app-identifier: "ca.qc.sat.oscremapper"
56+
app-description: "Remap OSC"
57+
app-copyright: "Société des Arts Technologiques"
58+
app-version: "1.0"
59+
app-png: "resources/logo.png"
60+
app-ico: "resources/logo.ico"
61+
app-icns: "resources/logo.icns"
62+
# Optional: macOS code signing (requires secrets to be set in repository)
63+
macos-certificate-base64: ${{ secrets.MAC_CERT_B64 }}
64+
macos-certificate-password: ${{ secrets.MAC_CERT_PASSWORD }}
65+
macos-notarize-team-id: ${{ secrets.MAC_NOTARIZE_TEAM_ID }}
66+
macos-notarize-apple-id: ${{ secrets.MAC_NOTARIZE_APPLE_ID }}
67+
macos-notarize-password: ${{ secrets.MAC_NOTARIZE_PASSWORD }}
68+
69+
- name: Upload packages
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: livepose-${{ matrix.artifact-name }}
73+
path: packages/
74+
retention-days: 30
75+
76+
release:
77+
name: Create Release
78+
needs: build
79+
runs-on: ubuntu-latest
80+
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
81+
82+
steps:
83+
- name: Download all artifacts
84+
uses: actions/download-artifact@v4
85+
with:
86+
path: all-packages
87+
pattern: livepose-*
88+
merge-multiple: true
89+
90+
- name: Create Release (on tags)
91+
if: startsWith(github.ref, 'refs/tags/')
92+
uses: softprops/action-gh-release@v2
93+
with:
94+
files: all-packages/*
95+
draft: false
96+
prerelease: false
97+
generate_release_notes: true
98+
99+
- name: Upload to Continuous Release (on main/master)
100+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
101+
uses: softprops/action-gh-release@v2
102+
with:
103+
name: "Continuous Build"
104+
tag_name: "continuous"
105+
files: all-packages/*
106+
draft: false
107+
prerelease: true
108+
generate_release_notes: false
File renamed without changes.

resources/logo.icns

17.7 KB
Binary file not shown.

resources/logo.ico

17.5 KB
Binary file not shown.

resources/logo.png

17.3 KB
Loading

resources/logo.svg

Lines changed: 79 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)