2022-05-18 19:20:03 +00:00
|
|
|
name: Build (OpenWatcom)
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
os2:
|
|
|
|
name: ${{ matrix.platform.name }}
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- { name: Windows, makefile: Makefile.w32 }
|
|
|
|
- { name: OS/2, makefile: Makefile.os2 }
|
|
|
|
|
|
|
|
steps:
|
2022-10-12 22:51:59 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-18 19:20:03 +00:00
|
|
|
- uses: open-watcom/setup-watcom@v0
|
|
|
|
- name: Build SDL2
|
|
|
|
run: |
|
2022-10-06 03:27:37 +00:00
|
|
|
wmake -f ${{ matrix.platform.makefile }} ENABLE_WERROR=1
|
2022-05-18 19:20:03 +00:00
|
|
|
- name: Build tests
|
|
|
|
run: |
|
2022-10-06 03:27:37 +00:00
|
|
|
cd test && wmake -f ${{ matrix.platform.makefile }} ENABLE_WERROR=1
|
2022-05-18 19:20:03 +00:00
|
|
|
cd ..
|
2022-05-19 12:14:29 +00:00
|
|
|
- name: Run tests
|
|
|
|
if: "matrix.platform.makefile == 'Makefile.w32'"
|
|
|
|
run: |
|
|
|
|
cd test && wmake -f ${{ matrix.platform.makefile }} check-quick
|
|
|
|
cd ..
|
2022-05-18 19:20:03 +00:00
|
|
|
- name: distclean
|
|
|
|
run: |
|
|
|
|
wmake -f ${{ matrix.platform.makefile }} distclean
|
|
|
|
cd test && wmake -f ${{ matrix.platform.makefile }} distclean
|
|
|
|
cd ..
|