diff options
| author | 2021-03-13 22:14:42 +0100 | |
|---|---|---|
| committer | 2021-03-13 22:14:42 +0100 | |
| commit | 05c2d854d5a2184863d08f9cce5650983675cb5f (patch) | |
| tree | 1d9737efafcc27f3ee547444426b905613a2c37b | |
| parent | build: fix building _without_ the bundled source code (diff) | |
| parent | ci: use two different jobs for in-memory/filesystem tests (diff) | |
| download | zig-sqlite-05c2d854d5a2184863d08f9cce5650983675cb5f.tar.gz zig-sqlite-05c2d854d5a2184863d08f9cce5650983675cb5f.tar.xz zig-sqlite-05c2d854d5a2184863d08f9cce5650983675cb5f.zip | |
Merge branch 'github-ci-bundled'
Diffstat (limited to '')
| -rw-r--r-- | .github/workflows/main.yml | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55a57c0..5b3bf4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml | |||
| @@ -4,9 +4,13 @@ on: | |||
| 4 | push: | 4 | push: |
| 5 | paths: | 5 | paths: |
| 6 | - '**.zig' | 6 | - '**.zig' |
| 7 | - '**.c' | ||
| 8 | - '**.h' | ||
| 7 | pull_request: | 9 | pull_request: |
| 8 | paths: | 10 | paths: |
| 9 | - '**.zig' | 11 | - '**.zig' |
| 12 | - '**.c' | ||
| 13 | - '**.h' | ||
| 10 | workflow_dispatch: | 14 | workflow_dispatch: |
| 11 | 15 | ||
| 12 | jobs: | 16 | jobs: |
| @@ -19,7 +23,7 @@ jobs: | |||
| 19 | version: master | 23 | version: master |
| 20 | - run: zig fmt --check *.zig | 24 | - run: zig fmt --check *.zig |
| 21 | 25 | ||
| 22 | build: | 26 | test-in-memory: |
| 23 | strategy: | 27 | strategy: |
| 24 | matrix: | 28 | matrix: |
| 25 | os: [ubuntu-latest] | 29 | os: [ubuntu-latest] |
| @@ -32,11 +36,27 @@ jobs: | |||
| 32 | with: | 36 | with: |
| 33 | version: master | 37 | version: master |
| 34 | 38 | ||
| 35 | - name: Build | 39 | - name: Run Tests in memory |
| 36 | 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 | ||
| 37 | 57 | ||
| 38 | - name: Run Tests with filesystem | 58 | - name: Run Tests with filesystem |
| 39 | run: zig build test -Din_memory=false | 59 | run: zig build test -Din_memory=false |
| 40 | 60 | ||
| 41 | - name: Run Tests in memory | 61 | - name: Run Tests with filesystem using the bundled SQLite |
| 42 | run: zig build test -Din_memory=true | 62 | run: zig build test -Din_memory=false -Duse_bundled |