mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-27 18:06:28 +00:00
Merge pull request #267 from chrboesch/main
Split github actions into 'Windows' and 'Linux/Mac' for using PowerShell on Windows
This commit is contained in:
commit
7ae8c2a827
2 changed files with 38 additions and 5 deletions
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
@ -28,11 +28,11 @@ jobs:
|
||||||
- name: Check compatibility with old Zig compilers
|
- name: Check compatibility with old Zig compilers
|
||||||
run: ci/compat.sh
|
run: ci/compat.sh
|
||||||
|
|
||||||
test:
|
test-linux_mac:
|
||||||
name: Unit Test
|
name: Unit Tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
@ -46,3 +46,20 @@ jobs:
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: zig build test
|
run: zig build test
|
||||||
|
|
||||||
|
test-windows:
|
||||||
|
name: Unit Test Windows
|
||||||
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Zig
|
||||||
|
uses: goto-bus-stop/setup-zig@v2
|
||||||
|
with:
|
||||||
|
version: master
|
||||||
|
|
||||||
|
- name: Run unit tests
|
||||||
|
run: zig build test
|
||||||
|
shell: pwsh
|
||||||
|
|
20
.github/workflows/eowyn.yml
vendored
20
.github/workflows/eowyn.yml
vendored
|
@ -13,10 +13,10 @@ defaults:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux_mac:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
|
@ -30,3 +30,19 @@ jobs:
|
||||||
|
|
||||||
- name: Run Eowyn
|
- name: Run Eowyn
|
||||||
run: patches/eowyn.sh
|
run: patches/eowyn.sh
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Zig
|
||||||
|
uses: goto-bus-stop/setup-zig@v2
|
||||||
|
with:
|
||||||
|
version: master
|
||||||
|
|
||||||
|
- name: Run Eowyn
|
||||||
|
run: patches/eowyn.sh
|
||||||
|
shell: pwsh
|
||||||
|
|
Loading…
Reference in a new issue