From 47ef82c1182f9696ac38ad21d305bb0af8d0cf56 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Wed, 4 Oct 2023 23:41:15 +0000 Subject: [PATCH] Run in docker. --- .github/workflows/go.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 98465aa..91c550b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,5 +17,14 @@ 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 ${HOME}:${HOME} -e PATH \ + -e WORKSPACE=${{ github.workspace }} --entrypoint /bin/sh sippylabs/rtpproxy:latest -c \ + 'cd ${WORKSPACE} && go build -o rtp_cluster'