]> Nishi Git Mirror - dataworks.git/commitdiff
add os/2
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 18 Jun 2024 23:29:28 +0000 (23:29 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Tue, 18 Jun 2024 23:29:28 +0000 (23:29 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@354 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

.github/workflows/build.yml
Makefiles/Platforms/os2.mk [new file with mode: 0644]

index 15b008ebf1532d20e827a0f21f379bfa04746212..89d6f864ddc09b99b0edda193156a70993d7144c 100644 (file)
@@ -127,6 +127,44 @@ jobs:
         name: build-win32
         path: build-win32.zip
 
+  build-os2:
+
+    name: "Build for OS/2"
+
+    runs-on: ubuntu-latest
+
+    permissions:
+      contents: write
+
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v4
+    - name: Install packages
+      run: sudo apt-get install zip byacc flex doxygen graphviz
+    - name: Create /usr/watcom
+      run: sudo mkdir -p /usr/watcom
+    - name: Install Open Watcom
+      run: curl -L https://github.com/open-watcom/open-watcom-v2/releases/download/Last-CI-build/ow-snapshot.tar.xz | sudo tar xvJf - -C /usr/watcom
+    - name: Add PATH
+      run: echo "/usr/watcom/binl64" >> $GITHUB_PATH
+    - name: Add WATCOM env
+      run: echo "WATCOM=/usr/watcom" >> $GITHUB_ENV
+    - name: Add INCLUDE env
+      run: echo "INCLUDE=/usr/watcom/h" >> $GITHUB_ENV
+    - name: Make sure it is clean
+      run: make clean PLATFORM=dos4g
+    - name: Make for DOS
+      run: make YACC=byacc PLATFORM=os2 -j3 archive
+    - name: Rename to -os2
+      run: mv dataworks.zip dataworks-os2.zip && mv dataworks.tar.gz dataworks-os2.tar.gz && mv Client/dataworks.exe dataworks-os2.exe && mv Server/dataworks_server.exe dataworks-server-os2.exe && mv RemoteClient/dataworks_remote_client.exe dataworks-remote-client-os2.exe
+    - name: Create artifact
+      run: zip -rv build-os2.zip dataworks-os2.tar.gz dataworks-os2.zip dataworks-server-os2.exe dataworks-os2.exe dataworks-remote-client-os2.exe
+    - name: Upload artifact
+      uses: actions/upload-artifact@v4
+      with:
+        name: build-os2
+        path: build-os2.zip
+
   build-dos4g:
 
     name: "Build for DOS/4G"
@@ -322,7 +360,7 @@ jobs:
     permissions:
       contents: write
 
-    needs: [build-dos, build-dos4g, build-win32, build-win64, build-linux64, build-mac, build-debpkg, build-dosimg, test]
+    needs: [build-dos, build-dos4g, build-win32, build-win64, build-linux64, build-mac, build-os2, build-debpkg, build-dosimg, test]
 
     steps:
     - name: Checkout
@@ -335,6 +373,10 @@ jobs:
       uses: actions/download-artifact@v4
       with:
         name: build-dos4g
+    - name: Download from build-os2
+      uses: actions/download-artifact@v4
+      with:
+        name: build-os2
     - name: Download from build-win32
       uses: actions/download-artifact@v4
       with:
@@ -367,6 +409,8 @@ jobs:
       run: unzip $GITHUB_WORKSPACE/build-dos.zip
     - name: Extract the build-dos4g
       run: unzip $GITHUB_WORKSPACE/build-dos4g.zip
+    - name: Extract the build-os2
+      run: unzip $GITHUB_WORKSPACE/build-os2.zip
     - name: Extract the build-win32
       run: unzip $GITHUB_WORKSPACE/build-win32.zip
     - name: Extract the build-win64
diff --git a/Makefiles/Platforms/os2.mk b/Makefiles/Platforms/os2.mk
new file mode 100644 (file)
index 0000000..1e88d22
--- /dev/null
@@ -0,0 +1,9 @@
+# $Id$
+
+WATCOM_PLATFORM=os2
+include Makefiles/Platforms/watcom.mk
+EXEC_SUFFIX=.exe
+RCLI=
+SERVER=
+SERVER_MODULE = hayes.o
+RCLI_MODULE = hayes.o