From 72dbc9b4c7b773afad26ed98522758d8cea0f39a Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 14 Apr 2024 19:31:49 +0200 Subject: ci: reenable windows --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index adc7db1..d0d1666 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, macos-12] + os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -40,7 +40,6 @@ jobs: version: master - uses: actions/cache@v4 - if: ${{ matrix.os != 'windows-latest' }} with: path: | zig-cache -- cgit v1.2.3 From b6b37394a392d1a47ca00e0c389879ee5ff859f6 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 14 Apr 2024 20:25:43 +0200 Subject: ci: run with qemu and wine --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0d1666..f6085ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,7 @@ jobs: restore-keys: ${{ runner.os }}-${{ matrix.os }}-zig- - name: Run Tests in memory - run: zig build test -Dci=true -Din_memory=true --summary all + run: zig build test -Dci=true -Din_memory=true --summary all -fqemu -fwine - name: Build the example zigcrypto loadable extension run: zig build zigcrypto -- cgit v1.2.3 From a5b6dfa610208ababeaa19df711914c638d46315 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 14 Apr 2024 20:29:53 +0200 Subject: ci: better output --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f6085ee..3f4ecf3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,14 +32,18 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 with: submodules: true - - uses: goto-bus-stop/setup-zig@v2 + + - name: Setup zig + uses: goto-bus-stop/setup-zig@v2 with: version: master - - uses: actions/cache@v4 + - name: Restore cache + uses: actions/cache@v4 with: path: | zig-cache -- cgit v1.2.3 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(+) (limited to '.github/workflows') 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