|
| 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 |
0 commit comments