From 2c751868628111b8ae555347d0f8115c609cdc72 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 14 Apr 2024 20:33:23 +0200 Subject: ci: run with -fqemu and -frosetta --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: with: version: master + - name: Install qemu + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + sudo apt-get update -y && sudo apt-get install -y qemu-user-binfmt + - name: Restore cache uses: actions/cache@v4 with: @@ -52,9 +57,17 @@ jobs: restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- - name: Run Tests in memory + if: ${{ matrix.os == 'ubuntu-latest' }} run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine + - name: Run Tests in memory + if: ${{ matrix.os == 'macos-latest' }} + run: zig build test -Dci=true -Din_memory=true --summary all -frosetta + - name: Run Tests in memory + if: ${{ matrix.os == 'windows-latest' }} + run: zig build test -Dci=true -Din_memory=true --summary all - name: Build the example zigcrypto loadable extension run: zig build zigcrypto - name: Test the zigcrypto loadable extension + if: ${{ matrix.os != 'windows-latest' }} run: ./zig-out/bin/zigcrypto-test -- cgit v1.2.3