Skip to content

Commit

Permalink
use stash, test in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Mar 1, 2024
1 parent 80eb514 commit 35f3494
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,38 +61,49 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4

- uses: assignUser/stash/restore@main
with:
path: '.ccache'
key: ccache-linux-${{ matrix.type }}-${{ hashFiles('velox/*') }}
restore-keys: ccache-linux-${{ matrix.type }}
path: '${{ env.CCACHE_DIR }}'
key: ccache-linux-${{ matrix.type }}

- run: |
mkdir -p .ccache
- name: Minimal, no tests
run: |
df -h .
du -sh .
ccache -s
make VELOX_BUILD_MINIMAL=ON VELOX_BUILD_TESTING=OFF '${{ matrix.type }}'
make VELOX_BUILD_MINIMAL=ON VELOX_BUILD_TESTING=OFF '${{ matrix.type }}'
df -h .
du -sh .
ccache -s
- name: Default, no tests
- name: Default, no tests
run: |
df -h .
du -sh .
ccache -s
make VELOX_BUILD_TESTING=OFF release '${{ matrix.type }}'
make VELOX_BUILD_TESTING=OFF '${{ matrix.type }}'
df -h .
du -sh .
ccache -s
- run: |
df -h .
du -sh .
ccache -s
make '${{ matrix.type }}'
make unittest
df -h .
du -sh .
ccache -s
- uses: assignUser/stash/save@main
with:
path: '${{ env.CCACHE_DIR }}'
key: ccache-linux-${{ matrix.type }}

- name: Run Tests
run: make unittest

0 comments on commit 35f3494

Please sign in to comment.