From b06cc6382eb7406443284dafa9279c8f5106108e Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 20 Jan 2025 08:04:46 -0500 Subject: [PATCH 1/5] Try a docker build Lets see if this works --- .github/workflows/build-daw-plugin.yml | 40 +++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-daw-plugin.yml b/.github/workflows/build-daw-plugin.yml index ee39759..bb8c36a 100644 --- a/.github/workflows/build-daw-plugin.yml +++ b/.github/workflows/build-daw-plugin.yml @@ -53,10 +53,11 @@ jobs: with: submodules: recursive - - name: Select Xcode Version - if: runner.os == 'macOS' - run: sudo xcode-select -switch /Applications/Xcode_15.1.app - + - name: Prepare for JUCE + uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main + with: + os: ${{ runner.os }} +d .g - uses: apple-actions/import-codesign-certs@v3 if: runner.os == 'macOS' && github.event_name != 'pull_request' with: @@ -122,6 +123,37 @@ jobs: path: build/installer name: dawplugin-${{ matrix.name }} + + build_plugin_docker: + name: Docker Build Ubuntu20 ${{ matrix.name }} + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Build in Docker + uses: surge-synthesizer/sst-githubactions/cmake-in-docker@main + with: + image: ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu20_gcc11:main + username: ${{ github.actor }} + token: ${{ secrets.GITHUB_TOKEN }} + cmakeArgs: -DCMAKE_BUILD_TYPE=Release -GNinja + target: awcons-installer + + + - name: Show Installer Directory + run: | + ls -l ./build/installer + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: build/installer + name: build-docker-${{matrix.installer_dir }} + publish-dawplugin-nightly: name: Publish DAWPlugin # only create a release if a tag was created that is called e.g. v1.2.3 From 22ce5c4c6383ccbc99c9791fb02b3379b47a4683 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 20 Jan 2025 08:06:25 -0500 Subject: [PATCH 2/5] try2 --- .github/workflows/build-daw-plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-daw-plugin.yml b/.github/workflows/build-daw-plugin.yml index bb8c36a..dc67b31 100644 --- a/.github/workflows/build-daw-plugin.yml +++ b/.github/workflows/build-daw-plugin.yml @@ -57,7 +57,7 @@ jobs: uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main with: os: ${{ runner.os }} -d .g + - uses: apple-actions/import-codesign-certs@v3 if: runner.os == 'macOS' && github.event_name != 'pull_request' with: From 31a3868ab3e3629ed0f0ca1eff930b33d9bf8fc8 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 20 Jan 2025 08:10:21 -0500 Subject: [PATCH 3/5] try3 --- .github/workflows/build-daw-plugin.yml | 36 ++++---------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-daw-plugin.yml b/.github/workflows/build-daw-plugin.yml index dc67b31..11fd741 100644 --- a/.github/workflows/build-daw-plugin.yml +++ b/.github/workflows/build-daw-plugin.yml @@ -64,14 +64,6 @@ jobs: p12-file-base64: ${{ secrets.MAC_CERTS_P12 }} p12-password: ${{ secrets.CERT_PWD }} - - name: Install Linux Deps; pick GCC9 - if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt install libasound2-dev libfontconfig1-dev libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libfreetype6-dev libglu1-mesa-dev libjack-jackd2-dev - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12 - - name: Build release version if: github.event_name != 'pull_request' run: | @@ -162,28 +154,10 @@ jobs: runs-on: ubuntu-latest needs: [build_plugin] steps: - - uses: actions/download-artifact@v4 - with: - path: artifacts - - name: Show Installer Directory - run: | - ls -R artifacts - - name: Delete old release assets - uses: mknejp/delete-release-assets@v1 - with: - token: ${{ github.token }} - tag: DAWPlugin # This may also be of the form 'refs/tags/staging' - assets: '*' - - name: Upload release assets - uses: svenstaro/upload-release-action@v2 + - name: Upload to Nightly + uses: surge-synthesizer/sst-githubactions/upload-to-release@main with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: artifacts/**/**/** tag: DAWPlugin - file_glob: true - - name: Tag Repo - uses: richardsimko/update-tag@v1.0.7 - with: - tag_name: DAWPlugin - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + reuse_tag: true + create_tag: false + token: ${{ secrets.GITHUB_TOKEN }} From dd009beb89b7501e9fbb7ed13059e63a8877f5b5 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 20 Jan 2025 08:14:04 -0500 Subject: [PATCH 4/5] tryn --- .github/workflows/build-daw-plugin.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-daw-plugin.yml b/.github/workflows/build-daw-plugin.yml index 11fd741..849bba1 100644 --- a/.github/workflows/build-daw-plugin.yml +++ b/.github/workflows/build-daw-plugin.yml @@ -132,7 +132,7 @@ jobs: image: ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu20_gcc11:main username: ${{ github.actor }} token: ${{ secrets.GITHUB_TOKEN }} - cmakeArgs: -DCMAKE_BUILD_TYPE=Release -GNinja + cmakeArgs: -DCMAKE_BUILD_TYPE=Release -GNinja -DBUILD_JUCE_PLUGIN=TRUE target: awcons-installer @@ -161,3 +161,11 @@ jobs: reuse_tag: true create_tag: false token: ${{ secrets.GITHUB_TOKEN }} + + - name: Post to Discord + uses: surge-synthesizer/sst-githubactions/discord-release-notify@main + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + tag: DAWPlugin + title: "A New AirWindows Conslidated Version is Available" + From 392595706b2d2572baab76fcd213933178de33ba Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Mon, 20 Jan 2025 08:32:19 -0500 Subject: [PATCH 5/5] Last Try --- .github/workflows/build-daw-plugin.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-daw-plugin.yml b/.github/workflows/build-daw-plugin.yml index 849bba1..2cd89b0 100644 --- a/.github/workflows/build-daw-plugin.yml +++ b/.github/workflows/build-daw-plugin.yml @@ -111,6 +111,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 + if: runner.os != 'Linux' # since that gets docker built below with: path: build/installer name: dawplugin-${{ matrix.name }} @@ -144,7 +145,7 @@ jobs: uses: actions/upload-artifact@v4 with: path: build/installer - name: build-docker-${{matrix.installer_dir }} + name: build-docker-linux publish-dawplugin-nightly: name: Publish DAWPlugin @@ -152,7 +153,7 @@ jobs: # see also https://vcvrack.com/manual/Manifest#version if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'baconpaul' }} runs-on: ubuntu-latest - needs: [build_plugin] + needs: [build_plugin, build_plugin_docker] steps: - name: Upload to Nightly uses: surge-synthesizer/sst-githubactions/upload-to-release@main