CI: update os2.yml to use open-watcom/setup-watcom also remove os2-buildbot.sh -- not needed anymore.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
diff --git a/.github/workflows/os2.yml b/.github/workflows/os2.yml
index c6f11e0..2ae1064 100644
--- a/.github/workflows/os2.yml
+++ b/.github/workflows/os2.yml
@@ -7,20 +7,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
- - name: Cache OpenWatcom
- uses: actions/cache@v2
- env:
- cache-name: cache-openwatcom
- with:
- path: ~/openwatcom
- key: ${{ runner.os }}-build-${{ env.cache-name }}
-
- - name: Download OpenWatcom if not cached
- run: if [ ! -d ~/openwatcom/binl64 ]; then wget --no-verbose 'https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/open-watcom-2_0-c-linux-x64' -O ~/ow.zip && mkdir -p ~/openwatcom && cd ~/openwatcom && unzip ~/ow.zip && chmod -R a+rx ~/openwatcom ; fi
- shell: bash
-
- - name: Build
- run: WATCOM="$HOME/openwatcom" build-scripts/os2-buildbot.sh
- shell: bash
-
+ - uses: open-watcom/setup-watcom@v0
+ - name: Build SDL2
+ run: |
+ wmake -f Makefile.os2
+ - name: Build tests
+ run: |
+ cd test && wmake -f Makefile.os2
+ cd ..
+ - name: distclean
+ run: |
+ wmake -f Makefile.os2 distclean
+ cd test && wmake -f Makefile.os2 distclean
+ cd ..
diff --git a/build-scripts/os2-buildbot.sh b/build-scripts/os2-buildbot.sh
deleted file mode 100755
index abe0350..0000000
--- a/build-scripts/os2-buildbot.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-
-# This is the script buildbot.libsdl.org uses to cross-compile SDL2 from
-# x86 Linux to OS/2, using OpenWatcom.
-
-# The final zipfile can be unpacked on any machine that supports OpenWatcom
-# (Windows, Linux, OS/2, etc). Point the compiler at the include directory
-# and link against the SDL2.lib file. Ship the SDL2.dll with your app.
-
-if [ -z "$WATCOM" ]; then
- echo "This script expects \$WATCOM to be set to the OpenWatcom install dir." 1>&2
- echo "This is often something like '/usr/local/share/watcom'" 1>&2
- exit 1
-fi
-export PATH="$WATCOM/binl64:$PATH"
-
-ZIPFILE="$1"
-if [ -z $1 ]; then
- ZIPFILE=sdl-os2.zip
-fi
-ZIPDIR=buildbot/SDL
-
-set -e
-set -x
-
-cd `dirname "$0"`
-cd ..
-
-rm -f $ZIPFILE
-wmake -f Makefile.os2
-rm -rf $ZIPDIR
-mkdir -p $ZIPDIR
-chmod 644 SDL2.dll SDL2.lib SDL2test.lib
-mv SDL2.dll SDL2.lib SDL2test.lib $ZIPDIR/
-cp -R include $ZIPDIR/
-zip -9r "buildbot/$ZIPFILE" $ZIPDIR
-
-wmake -f Makefile.os2 distclean
-
-set +x
-echo "All done. Final installable is in $ZIPFILE ...";