diff options
| author | 2024-04-14 20:50:44 +0200 | |
|---|---|---|
| committer | 2024-04-14 20:50:44 +0200 | |
| commit | 19dd52b7b7e9fa5ec029c4ac3bd53fb41e5be12c (patch) | |
| tree | 453f927a6926b4f778a4be2a14164896734a60f0 /.github/workflows/main.yml | |
| parent | Merge pull request #157 from vrischmann/update-latest-zig (diff) | |
| parent | ci: run with -fqemu and -frosetta (diff) | |
| download | zig-sqlite-19dd52b7b7e9fa5ec029c4ac3bd53fb41e5be12c.tar.gz zig-sqlite-19dd52b7b7e9fa5ec029c4ac3bd53fb41e5be12c.tar.xz zig-sqlite-19dd52b7b7e9fa5ec029c4ac3bd53fb41e5be12c.zip | |
Merge pull request #158 from vrischmann/workaround-sqlite-transient
Workaround SQLITE_TRANSIENT
Diffstat (limited to '.github/workflows/main.yml')
| -rw-r--r-- | .github/workflows/main.yml | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index adc7db1..6a6093c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml | |||
| @@ -29,18 +29,26 @@ jobs: | |||
| 29 | strategy: | 29 | strategy: |
| 30 | fail-fast: false | 30 | fail-fast: false |
| 31 | matrix: | 31 | matrix: |
| 32 | os: [ubuntu-latest, macos-latest, macos-12] | 32 | os: [ubuntu-latest, windows-latest, macos-latest] |
| 33 | runs-on: ${{ matrix.os }} | 33 | runs-on: ${{ matrix.os }} |
| 34 | steps: | 34 | steps: |
| 35 | - uses: actions/checkout@v4 | 35 | - name: Checkout repository |
| 36 | uses: actions/checkout@v4 | ||
| 36 | with: | 37 | with: |
| 37 | submodules: true | 38 | submodules: true |
| 38 | - uses: goto-bus-stop/setup-zig@v2 | 39 | |
| 40 | - name: Setup zig | ||
| 41 | uses: goto-bus-stop/setup-zig@v2 | ||
| 39 | with: | 42 | with: |
| 40 | version: master | 43 | version: master |
| 41 | 44 | ||
| 42 | - uses: actions/cache@v4 | 45 | - name: Install qemu |
| 43 | if: ${{ matrix.os != 'windows-latest' }} | 46 | if: ${{ matrix.os == 'ubuntu-latest' }} |
| 47 | run: | | ||
| 48 | sudo apt-get update -y && sudo apt-get install -y qemu-user-binfmt | ||
| 49 | |||
| 50 | - name: Restore cache | ||
| 51 | uses: actions/cache@v4 | ||
| 44 | with: | 52 | with: |
| 45 | path: | | 53 | path: | |
| 46 | zig-cache | 54 | zig-cache |
| @@ -49,9 +57,17 @@ jobs: | |||
| 49 | restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- | 57 | restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- |
| 50 | 58 | ||
| 51 | - name: Run Tests in memory | 59 | - name: Run Tests in memory |
| 60 | if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| 61 | run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine | ||
| 62 | - name: Run Tests in memory | ||
| 63 | if: ${{ matrix.os == 'macos-latest' }} | ||
| 64 | run: zig build test -Dci=true -Din_memory=true --summary all -frosetta | ||
| 65 | - name: Run Tests in memory | ||
| 66 | if: ${{ matrix.os == 'windows-latest' }} | ||
| 52 | run: zig build test -Dci=true -Din_memory=true --summary all | 67 | run: zig build test -Dci=true -Din_memory=true --summary all |
| 53 | 68 | ||
| 54 | - name: Build the example zigcrypto loadable extension | 69 | - name: Build the example zigcrypto loadable extension |
| 55 | run: zig build zigcrypto | 70 | run: zig build zigcrypto |
| 56 | - name: Test the zigcrypto loadable extension | 71 | - name: Test the zigcrypto loadable extension |
| 72 | if: ${{ matrix.os != 'windows-latest' }} | ||
| 57 | run: ./zig-out/bin/zigcrypto-test | 73 | run: ./zig-out/bin/zigcrypto-test |