From c17de0e7c800bd30979c2beccb35663e95f14e7b Mon Sep 17 00:00:00 2001
From: Cameron Cawley <[EMAIL REDACTED]>
Date: Sat, 24 Sep 2022 13:45:02 +0100
Subject: [PATCH] Add OpenWatcom builds to GitHub Actions
---
.github/workflows/watcom.yml | 39 ++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 .github/workflows/watcom.yml
diff --git a/.github/workflows/watcom.yml b/.github/workflows/watcom.yml
new file mode 100644
index 000000000..960487d82
--- /dev/null
+++ b/.github/workflows/watcom.yml
@@ -0,0 +1,39 @@
+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:
+ - uses: open-watcom/setup-watcom@v0
+ - name: Get sdl12-compat sources
+ uses: actions/checkout@v2
+ - name: Get SDL2 headers
+ uses: actions/checkout@v2
+ with:
+ repository: libsdl-org/SDL
+ ref: release-2.24.0
+ path: SDL2
+ - name: Build sdl12-compat
+ run: |
+ cd src && wmake -f ${{ matrix.platform.makefile }} SDL2INC="${{ github.workspace }}/SDL2/include"
+ cd ..
+ - name: Build tests
+ run: |
+ cd test && wmake -f ${{ matrix.platform.makefile }}
+ cd ..
+ - name: distclean
+ run: |
+ cd src && wmake -f ${{ matrix.platform.makefile }} distclean
+ cd ..
+ cd test && wmake -f ${{ matrix.platform.makefile }} distclean
+ cd ..