Skip to content

Add a linux docker build #17

Add a linux docker build

Add a linux docker build #17

Workflow file for this run

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: Docker Pull
run: |
docker pull ghcr.io/surge-synthesizer/sst-dockerimages/ubuntu18_gcc11:main
- name: Docker Create and Start
run: |
export VUID=$(id -u)
export VGID=$(id -g)
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
- name: Docker Build and Stop
run: |
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