Add a linux docker build #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pull Request | |
on: | |
pull_request: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_plugin: | |
name: PR - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
- os: macos-latest | |
- os: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Prepare for JUCE | |
uses: surge-synthesizer/sst-githubactions/prepare-for-juce@main | |
with: | |
os: ${{ runner.os }} | |
- name: Build pull request version | |
run: | | |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug | |
cmake --build ./build --config Debug --target monique-staged --parallel 3 | |
build_plugin_lindoc: | |
name: PR - U18 Docker | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu18_gcc11:main | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build pull request version | |
run: | | |
export VUID=$(id -u) | |
export VGID=$(id -g) | |
docker pull ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu18_gcc11:main | |
docker create --user $VUID:$VGID --name u18_build --interactive --tty \ | |
--volume=`pwd`:/home/build/plugin ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu18_gcc11:main | |
docker start u18_build | |
docker exec u18_build bash -c "(cd /home/build/plugin && \ | |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug && \ | |
cmake --build ./build --config Debug --target monique-staged --parallel 3 )" | |
docker stop u18_build_bash | |
ls -al | |