Skip to content

Commit

Permalink
Move build to docker
Browse files Browse the repository at this point in the history
step 1
  • Loading branch information
baconpaul committed Jan 23, 2025
1 parent 55d03cc commit 0f5e8fc
Showing 1 changed file with 52 additions and 2 deletions.
54 changes: 52 additions & 2 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0f5e8fc

Please sign in to comment.