summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml13
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