Skip to content

Commit

Permalink
Change working directory for Docker build
Browse files Browse the repository at this point in the history
An attempt to use learnings from here:

actions/runner#1009
  • Loading branch information
Scott Harrison Moeller committed Mar 13, 2021
1 parent fcaf522 commit f4ca0b9
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/gcc-problems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
runs-on: ubuntu-latest
needs: gen_build_container
steps:
-
# TODO: Is this is necessary for overlays into the Docker container below?
name: Check Out Repo
uses: actions/checkout@v2
-
# I am using mmagician fork of get-changed-files (forked from jitterbit/get-changed-files)
# Rationale: our workflow (merge branch into upstream master) is incompatible
Expand All @@ -73,9 +77,6 @@ jobs:
uses: mmagician/get-changed-files@v2
with:
format: 'space-delimited'
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Download docker image from generate_container_for_build
uses: actions/download-artifact@v2
Expand All @@ -87,6 +88,10 @@ jobs:
run: |
docker load --input /tmp/mme_builder.tar
docker image ls -a
-
# Trying to diagnose missing /github/ mounts in container
name: Capture docker logs
uses: jwalton/gh-docker-logs@v1
-
# If needed https://github.com/microsoft/vscode-cpptools/issues/2266 for path fixups
#
Expand All @@ -99,11 +104,18 @@ jobs:
uses: addnab/docker-run-action@v2
with:
image: magma/mme_builder:latest
# TODO: Break up this long line (can I use '\' at end of each line?)
run: cd /magma/lte/gateway;make build_oai 2>&1 > /compile.log;for file in ${{ steps.changed_files.outputs.all }}; do grep $file /compile.log | xo '/\/magma\/((.*):(\d+):(\d+):\s+(?:fatal\s)?(warning|error):\s+(.*))/$1/' || true; done;
options: -v ${{ github.workspace }}:/work -e ABC=123
run: |
echo "Github Workspace SHM: $GITHUB_WORKSPACE"
ls -R /github/
cd /work/lte/gateway/
make build_oai 2>&1 > /work/compile.log
for file in ${{ steps.changed_files.outputs.all }};
do grep $file /work/compile.log | xo '/\/magma\/((.*):(\d+):(\d+):\s+(?:fatal\s)?(warning|error):\s+(.*))/$1/' || true;
done;
-
name: Store oai_build_logs artifact
uses: actions/upload-artifact@v2
with:
name: oai_build_logs
path: /compile.log
path: ${{ github.workspace }}/compile.log

0 comments on commit f4ca0b9

Please sign in to comment.