Fix mixed architecture builds #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# Only triggers on pushes/PRs to master | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
- github_actions | |
jobs: | |
test-posix: | |
name: Unittests Posix | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
dc: [dmd-latest, ldc-latest] | |
arch: [x86_64] | |
exclude: | |
- {os: macOS-latest, dc: dmd-latest, arch: x86_64} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install D compiler | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: Run tests | |
env: | |
ARCH: ${{matrix.arch}} | |
run: ./test.sh | |
shell: bash | |
test-windows: | |
name: Unittests Windows | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
dc: [dmd-latest, ldc-latest] | |
arch: [x86_64] | |
include: | |
- { os: windows-latest, dc: dmd-2.092.0, arch: x86_64, tests: unittests } | |
- { os: windows-latest, dc: dmd-2.092.0, arch: x86_mscoff, tests: unittests } | |
- { os: windows-latest, dc: dmd-2.091.1, arch: x86_64, tests: unittests } | |
- { os: windows-latest, dc: ldc-1.20.1, arch: x86_64, tests: unittests } | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install D compiler | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: Run tests | |
env: | |
ARCH: ${{matrix.arch}} | |
run: ./test.sh | |
shell: bash |