From 0f5e8fcadce209bcdc7c18dbed6a332dd30be1ff Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Thu, 23 Jan 2025 06:53:47 -0500 Subject: [PATCH] Move build to docker step 1 --- .github/workflows/build-plugin.yml | 54 ++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml index 11520b3..d89a08b 100644 --- a/.github/workflows/build-plugin.yml +++ b/.github/workflows/build-plugin.yml @@ -128,11 +128,61 @@ jobs: path: build/inst 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 -DCOPY_AFTER_BUILD=FALSE -DGITHUB_ACTIONS_BUILD=TRUE + target: six-sines_all + + + - name: Make linux tgz + run: | + find build -name "Six Sines*" -print + + mkdir build/inst + mkdir build/insttmp + + mv build/*.clap build/insttmp + mv "build/Six Sines" build/insttmp + mv build/Release/*.vst3 build/insttmp + + find build -name "Six Sines*" -print + + cd build/insttmp + ls -al + + tar cvzf ../inst/six-sines-linux-`date +"%Y-%m-%d"`-`git rev-parse --short HEAD`.tgz . + + - name: Show Installer Directory + run: | + ls -l ./build/inst + + - name: Upload artifact + if: github.event_name != 'pull_request' + uses: actions/upload-artifact@v4 + with: + path: build/installer + name: build-docker-linux + publish-plugin-nightly: name: Publish Nightlu 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 @@ -154,7 +204,7 @@ jobs: name: Publish Release if: startsWith(github.ref, 'refs/tags/v') && github.repository_owner == 'baconpaul' runs-on: ubuntu-latest - needs: [build_plugin] + needs: [build_plugin, build_plugin_docker] steps: - name: Upload to Release uses: surge-synthesizer/sst-githubactions/upload-to-release@main