File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed
Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,35 @@ jobs:
3434 steps :
3535 - name : GH Runner bug workaround
3636 run : sysctl -w vm.mmap_rnd_bits=28
37+
3738 - name : Checkout code
3839 uses : actions/checkout@v4
3940 with : { 'fetch-depth': 0 }
40- - name : Install unzip
41- run : apt-get update && apt-get install -y unzip
41+
42+ - name : Install unzip (for tests) and zstd (for faster caching)
43+ run : apt-get update && apt-get install -y unzip zstd
44+
45+ - name : Restore .build
46+ if : ${{ !(github.run_attempt > 1) }} # Because maybe the cache is causing issues
47+ id : " restore-cache"
48+ uses : actions/cache/restore@v4
49+ with :
50+ path : .build
51+ key : " spi-debug-build-${{ runner.os }}-${{ github.event.after }}"
52+ restore-keys : " spi-debug-build-${{ runner.os }}-"
53+
4254 - name : Run tests
4355 run : cp .env.testing.template .env.testing && make test
4456 env :
4557 COLLECTION_SIGNING_PRIVATE_KEY : ${{ secrets.COLLECTION_SIGNING_PRIVATE_KEY }}
58+
59+ - name : Cache .build
60+ if : steps.restore-cache.outputs.cache-hit != 'true'
61+ uses : actions/cache/save@v4
62+ with :
63+ path : .build
64+ key : " spi-debug-build-${{ runner.os }}-${{ github.event.after }}"
65+
4666 services :
4767 spi_test_0 :
4868 image : postgres:16-alpine
@@ -172,7 +192,7 @@ jobs:
172192 with :
173193 path : .build
174194 key : " spi-release-build-${{ runner.os }}-${{ github.event.after }}"
175-
195+
176196 - name : Test release
177197 run : |
178198 $(swift build --show-bin-path -c release)/Run serve --port 8080 --hostname 0.0.0.0 &
You can’t perform that action at this time.
0 commit comments