Skip to content

Commit b3df159

Browse files
authored
Initial commit
0 parents  commit b3df159

File tree

11 files changed

+1176
-0
lines changed

11 files changed

+1176
-0
lines changed

.github/workflows/build.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Custom app
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
tags:
7+
- 'v*'
8+
pull_request:
9+
branches: [ main, master ]
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
name: Package Custom App - ${{ matrix.platform }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- os: ubuntu-latest
21+
platform: linux-x86_64
22+
artifact-name: linux-x86_64
23+
- os: macos-latest
24+
platform: macos-arm
25+
artifact-name: macos-arm
26+
- os: windows-latest
27+
platform: windows
28+
artifact-name: windows
29+
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Package custom ossia score app
35+
uses: ossia/actions/package-custom-app@master
36+
with:
37+
app-name: "My Custom App"
38+
qml-files: "qml"
39+
# Optional: Add your score file here
40+
score-file: "score/app.score"
41+
release-tag: "continuous"
42+
platforms: "${{ matrix.platform }}"
43+
# Optional: QRC file for custom resources
44+
qrc-file: "resources/resources.qrc"
45+
# Optional: macOS code signing (requires secrets to be set in repository)
46+
macos-certificate-base64: ${{ secrets.MAC_CERT_B64 }}
47+
macos-certificate-password: ${{ secrets.MAC_CERT_PASSWORD }}
48+
macos-notarize-team-id: ${{ secrets.MAC_NOTARIZE_TEAM_ID }}
49+
macos-notarize-apple-id: ${{ secrets.MAC_NOTARIZE_APPLE_ID }}
50+
macos-notarize-password: ${{ secrets.MAC_NOTARIZE_PASSWORD }}
51+
52+
- name: Upload packages
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: custom-app-${{ matrix.artifact-name }}
56+
path: packages/
57+
retention-days: 30
58+
59+
release:
60+
name: Create Release
61+
needs: build
62+
runs-on: ubuntu-latest
63+
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
64+
65+
steps:
66+
- name: Download all artifacts
67+
uses: actions/download-artifact@v4
68+
with:
69+
path: all-packages
70+
pattern: custom-app-*
71+
merge-multiple: true
72+
73+
- name: Create Release (on tags)
74+
if: startsWith(github.ref, 'refs/tags/')
75+
uses: softprops/action-gh-release@v2
76+
with:
77+
files: all-packages/*
78+
draft: false
79+
prerelease: false
80+
generate_release_notes: true
81+
82+
- name: Upload to Continuous Release (on main/master)
83+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
84+
uses: softprops/action-gh-release@v2
85+
with:
86+
name: "Continuous Build"
87+
tag_name: "continuous"
88+
files: all-packages/*
89+
draft: false
90+
prerelease: true
91+
generate_release_notes: false

.github/workflows/full-build.yml

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

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Build outputs
2+
packages/
3+
build/
4+
dist/
5+
6+
# OS files
7+
.DS_Store
8+
Thumbs.db
9+
desktop.ini
10+
11+
# Editor files
12+
*.swp
13+
*.swo
14+
*~
15+
.vscode/
16+
.idea/
17+
*.sublime-*
18+
19+
# Temporary files
20+
*.tmp
21+
*.bak
22+
*.log
23+
24+
# QML cache
25+
*.qmlc
26+
*.jsc
27+
28+
# Local testing
29+
*.AppImage
30+
*.dmg
31+
*.exe
32+
*.zip

0 commit comments

Comments
 (0)