Skip to content

Commit 42549ca

Browse files
committed
Remove matrix scenario to get most cache hits in expense of slightly longer CI run
1 parent b8c9e4e commit 42549ca

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
matrix:
6565
toolchain: [ "gcc", "clang"]
6666
protocol: ["current", "next"]
67-
scenario: ["", "--check-test-tx-meta"]
6867
steps:
6968
- name: Fix kernel mmap rnd bits
7069
# Asan in llvm provided in ubuntu 22.04 is incompatible with
@@ -141,11 +140,14 @@ jobs:
141140
export CXX='clang++'
142141
fi
143142
echo Build with $CC and $CXX
144-
./ci-build.sh --use-temp-db --protocol ${{ matrix.protocol }} ${{ matrix.scenario }}
143+
echo "Running first scenario"
144+
./ci-build.sh --use-temp-db --protocol ${{ matrix.protocol }}
145+
echo "Running second scenario with --check-test-tx-meta flag"
146+
./ci-build.sh --use-temp-db --protocol ${{ matrix.protocol }} --check-test-tx-meta
145147
146-
# We only _save_ to the cache when we had a cache miss, are running on master, and are the non-txmeta scenario.
148+
# We only _save_ to the cache when we had a cache miss and are running on master.
147149
- uses: actions/cache/save@v4
148-
if: ${{ steps.cache.outputs.cache-hit != 'true' && github.ref_name == 'master' && matrix.scenario == ''}}
150+
if: ${{ steps.cache.outputs.cache-hit != 'true' && github.ref_name == 'master' }}
149151
with:
150152
path: ${{ env.CACHED_PATHS }}
151153
key: ${{ steps.cache.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)