Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
themarwhal committed Mar 11, 2022
1 parent 1874f24 commit be8ca40
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/agw-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,17 @@ jobs:
name: C/C++ unit tests with Bazel
runs-on: ubuntu-latest
steps:
- name: Check free space
run: |
echo "Free space:"
df -h
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
root-reserve-mb: 10000
- name: Check Out Repo
# This is necessary for overlays into the Docker container below.
uses: actions/checkout@v2
Expand All @@ -160,6 +171,14 @@ jobs:
key: ${{ runner.os }}-${{ env.BAZEL_CACHE_REPO }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ env.BAZEL_CACHE_REPO }}-
- name: Check free space
run: |
echo "Free space:"
df -h
- name: Check Bazel cache size
run: |
echo "Free space:"
du -sh .bazel-cache
- name: Ensure cache size (only on master)
if: github.event_name == 'push'
env:
Expand All @@ -174,6 +193,10 @@ jobs:
# Run a simple echo command to pull down the image. This makes it a bit more clear how much time is spent on building Magma and not pulling down the image.
run: |
echo "Pulled the devontainer image!"
- name: Check free space
run: |
echo "Free space:"
df -h
- name: Create a directory to store XML test results
uses: addnab/docker-run-action@v2
with:
Expand All @@ -200,6 +223,16 @@ jobs:
echo "Copying out test result XMLs for testing with ASAN"
find bazel-out/k8-dbg/testlogs/ -name "*.xml" | while IFS= read -r f; do cp "$f" "c-cpp-test-results/asan_${f//\//_}"; done
exit $TEST_RESULT
- name: Check free space
if: always()
run: |
echo "Free space:"
df -h
- name: Check Bazel cache size
if: always()
run: |
echo "Free space:"
du -sh .bazel-cache
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit be8ca40

Please sign in to comment.