diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index a5f69f36..d34d885b 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -38,8 +38,24 @@ jobs: 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: | - git clone ${{ github.server }}/${{ github.repository }} - cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug - cmake --build ./build --config Debug --target monique-staged --parallel 3 + 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 +