diff options
| author | 2024-04-14 20:33:23 +0200 | |
|---|---|---|
| committer | 2024-04-14 20:47:22 +0200 | |
| commit | 2c751868628111b8ae555347d0f8115c609cdc72 (patch) | |
| tree | 453f927a6926b4f778a4be2a14164896734a60f0 /.github/workflows | |
| parent | ci: better output (diff) | |
| download | zig-sqlite-2c751868628111b8ae555347d0f8115c609cdc72.tar.gz zig-sqlite-2c751868628111b8ae555347d0f8115c609cdc72.tar.xz zig-sqlite-2c751868628111b8ae555347d0f8115c609cdc72.zip | |
ci: run with -fqemu and -frosetta
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f4ecf3..6a6093c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml | |||
| @@ -42,6 +42,11 @@ jobs: | |||
| 42 | with: | 42 | with: |
| 43 | version: master | 43 | version: master |
| 44 | 44 | ||
| 45 | - name: Install qemu | ||
| 46 | if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| 47 | run: | | ||
| 48 | sudo apt-get update -y && sudo apt-get install -y qemu-user-binfmt | ||
| 49 | |||
| 45 | - name: Restore cache | 50 | - name: Restore cache |
| 46 | uses: actions/cache@v4 | 51 | uses: actions/cache@v4 |
| 47 | with: | 52 | with: |
| @@ -52,9 +57,17 @@ jobs: | |||
| 52 | restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- | 57 | restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- |
| 53 | 58 | ||
| 54 | - name: Run Tests in memory | 59 | - name: Run Tests in memory |
| 60 | if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| 55 | run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine | 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' }} | ||
| 67 | run: zig build test -Dci=true -Din_memory=true --summary all | ||
| 56 | 68 | ||
| 57 | - name: Build the example zigcrypto loadable extension | 69 | - name: Build the example zigcrypto loadable extension |
| 58 | run: zig build zigcrypto | 70 | run: zig build zigcrypto |
| 59 | - name: Test the zigcrypto loadable extension | 71 | - name: Test the zigcrypto loadable extension |
| 72 | if: ${{ matrix.os != 'windows-latest' }} | ||
| 60 | run: ./zig-out/bin/zigcrypto-test | 73 | run: ./zig-out/bin/zigcrypto-test |