summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-03-13 18:24:05 +0100
committerGravatar Vincent Rischmann2021-03-13 22:12:14 +0100
commit5d202c2eca8c30f958d6d17b33fa5045a93c5220 (patch)
tree1d9737efafcc27f3ee547444426b905613a2c37b /.github
parentci: also trigger the github workflow if C files are modified (diff)
downloadzig-sqlite-5d202c2eca8c30f958d6d17b33fa5045a93c5220.tar.gz
zig-sqlite-5d202c2eca8c30f958d6d17b33fa5045a93c5220.tar.xz
zig-sqlite-5d202c2eca8c30f958d6d17b33fa5045a93c5220.zip
ci: use two different jobs for in-memory/filesystem tests
Diffstat (limited to '')
-rw-r--r--.github/workflows/main.yml26
1 files changed, 21 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 33f29e7..5b3bf4d 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -23,7 +23,7 @@ jobs:
23 version: master 23 version: master
24 - run: zig fmt --check *.zig 24 - run: zig fmt --check *.zig
25 25
26 build: 26 test-in-memory:
27 strategy: 27 strategy:
28 matrix: 28 matrix:
29 os: [ubuntu-latest] 29 os: [ubuntu-latest]
@@ -36,11 +36,27 @@ jobs:
36 with: 36 with:
37 version: master 37 version: master
38 38
39 - name: Build 39 - name: Run Tests in memory
40 run: zig build 40 run: zig build test -Din_memory=true
41
42 - name: Run Tests in memory using the bundled SQLite
43 run: zig build test -Din_memory=true -Duse_bundled
44
45 test-with-filesystem:
46 strategy:
47 matrix:
48 os: [ubuntu-latest]
49 runs-on: ${{ matrix.os }}
50 steps:
51 - uses: actions/checkout@v2
52 with:
53 submodules: true
54 - uses: goto-bus-stop/setup-zig@v1
55 with:
56 version: master
41 57
42 - name: Run Tests with filesystem 58 - name: Run Tests with filesystem
43 run: zig build test -Din_memory=false 59 run: zig build test -Din_memory=false
44 60
45 - name: Run Tests in memory 61 - name: Run Tests with filesystem using the bundled SQLite
46 run: zig build test -Din_memory=true 62 run: zig build test -Din_memory=false -Duse_bundled