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:
34
34
steps :
35
35
- name : GH Runner bug workaround
36
36
run : sysctl -w vm.mmap_rnd_bits=28
37
+
37
38
- name : Checkout code
38
39
uses : actions/checkout@v4
39
40
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
+
42
54
- name : Run tests
43
55
run : cp .env.testing.template .env.testing && make test
44
56
env :
45
57
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
+
46
66
services :
47
67
spi_test_0 :
48
68
image : postgres:16-alpine
@@ -172,7 +192,7 @@ jobs:
172
192
with :
173
193
path : .build
174
194
key : " spi-release-build-${{ runner.os }}-${{ github.event.after }}"
175
-
195
+
176
196
- name : Test release
177
197
run : |
178
198
$(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