diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 98465aa..6c94899 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,5 +17,13 @@ jobs: with: go-version: 1.21.1 + - name: Pull and run build in Docker container + run: | + docker pull sippylabs/rtpproxy:latest + - name: Build - run: make + run: | + which go + echo ${RUNNER_TOOL_CACHE} + docker run --rm -v ${RUNNER_TOOL_CACHE}:${RUNNER_TOOL_CACHE} -v ${{ github.workspace }}:/workspace -e PATH -v ${GOCACHE}:${GOCACHE} -v ${GOENV}:${GOENV} \ + -v ${GOPATH}:${GOPATH} -v ${GOROOT}:${GOROOT} --entrypoint /bin/sh sippylabs/rtpproxy:latest -c "cd /workspace && go build -o rtp_cluster"