Skip to content

Commit

Permalink
add OpenWatcom setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak authored Sep 20, 2024
1 parent 2cfcbbd commit 470b2e6
Showing 1 changed file with 21 additions and 104 deletions.
125 changes: 21 additions & 104 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -970,24 +970,20 @@ jobs:
# decompress.
- name: Cache OpenWatcom and Dependencies
uses: actions/cache@v4
id: cache-watcom-zinc
id: cache-zinc
with:
path: |
${{github.workspace}}\watcom
${{github.workspace}}\zinc
key: w32-watcom-1.9+openzinc1

- name: Get OpenWatcom 1.9 and Dependencies
if: steps.cache-watcom-zinc.outputs.cache-hit != 'true'
- name: Open Watcom setup
uses: open-watcom/setup-watcom@v0
with:
version: "2.0-64"

- name: Get zinc
if: steps.cache-zinc.outputs.cache-hit != 'true'
run: |
if (Test-Path watcom) {
Remove-Item watcom -Force
}
mkdir watcom
cd watcom
wget https://github.com/open-watcom/open-watcom-1.9/releases/download/ow1.9/open-watcom-c-win32-1.9.exe -outfile open-watcom-c-win32-1.9.exe
7z x open-watcom-c-win32-1.9.exe
cd ..
mkdir zinc
cd zinc
wget ${{ env.OPENZINC }} -outfile OZ1.zip
Expand All @@ -997,19 +993,6 @@ jobs:

- name: Full Build
run: |
SET PATH=%WATCOM%\BINW;%PATH%
SET PATH=%WATCOM%\BINNT;%PATH%
SET INCLUDE=%WATCOM%\H\NT;%INCLUDE%
SET INCLUDE=%WATCOM%\H\NT;%INCLUDE%
SET INCLUDE=%INCLUDE%;C:\WATCOM\H\NT\DIRECTX
SET INCLUDE=%INCLUDE%;C:\WATCOM\H\NT\DDK
SET INCLUDE=%WATCOM%\H;%INCLUDE%
SET EDPATH=%WATCOM%\EDDAT
SET WHTMLHELP=%WATCOM%\BINNT\HELP
SET WIPFC=%WATCOM%\WIPFC
call setenv.bat
REM Enable Dynamic SSH just to be sure those bits are buildable
REM with OpenWatcom
set CKF_SSH=yes
Expand Down Expand Up @@ -1042,29 +1025,15 @@ jobs:
working-directory: ${{ github.workspace }}
env:
ROOT: ${{ github.workspace }}
WATCOM: ${{ github.workspace }}\watcom
- name: Dialer Build
run: |
SET PATH=%WATCOM%\BINW;%PATH%
SET PATH=%WATCOM%\BINNT;%PATH%
SET INCLUDE=%WATCOM%\H\NT;%INCLUDE%
SET INCLUDE=%WATCOM%\H\NT;%INCLUDE%
SET INCLUDE=%INCLUDE%;C:\WATCOM\H\NT\DIRECTX
SET INCLUDE=%INCLUDE%;C:\WATCOM\H\NT\DDK
SET INCLUDE=%WATCOM%\H;%INCLUDE%
SET EDPATH=%WATCOM%\EDDAT
SET WHTMLHELP=%WATCOM%\BINNT\HELP
SET WIPFC=%WATCOM%\WIPFC
call setenv.bat
cd kermit\dialer
call mk.bat
call mkdist.bat
shell: cmd
working-directory: ${{ github.workspace }}
env:
ROOT: ${{ github.workspace }}
WATCOM: ${{ github.workspace }}\watcom
- name: Prepare Artifacts
shell: cmd
working-directory: ${{ github.workspace }}\kermit\k95
Expand Down Expand Up @@ -1107,41 +1076,15 @@ jobs:

# Cache OpenWatcom because it takes quite a while to download and
# decompress.
- name: Cache OpenWatcom
uses: actions/cache@v4
id: cache-watcom
- name: Open Watcom setup
uses: open-watcom/setup-watcom@v0
with:
path: |
${{github.workspace}}\watcom
key: nt-watcom-1.9
- name: Get OpenWatcom 1.9
if: steps.cache-watcom.outputs.cache-hit != 'true'
run: |
if (Test-Path watcom) {
Remove-Item watcom -Force
}
mkdir watcom
cd watcom
wget https://github.com/open-watcom/open-watcom-1.9/releases/download/ow1.9/open-watcom-c-win32-1.9.exe -outfile open-watcom-c-win32-1.9.exe
7z x open-watcom-c-win32-1.9.exe
shell: powershell
version: "2.0-64"
- name: Full Build
run: |
SET PATH=%WATCOM%\BINW;%PATH%
SET PATH=%WATCOM%\BINNT;%PATH%
SET INCLUDE=%WATCOM%\H\NT;%INCLUDE%
SET INCLUDE=%WATCOM%\H\NT;%INCLUDE%
SET INCLUDE=%INCLUDE%;C:\WATCOM\H\NT\DIRECTX
SET INCLUDE=%INCLUDE%;C:\WATCOM\H\NT\DDK
SET INCLUDE=%WATCOM%\H;%INCLUDE%
SET EDPATH=%WATCOM%\EDDAT
SET WHTMLHELP=%WATCOM%\BINNT\HELP
SET WIPFC=%WATCOM%\WIPFC
REM Build for Windows NT 3.50 (and, someday, NT 3.1)
set CKT_NT31=yes
call ..\setenv.bat
cd p95
call mknt.bat
cd ..\k95
Expand All @@ -1168,7 +1111,6 @@ jobs:
working-directory: ${{ github.workspace }}\kermit
env:
ROOT: ${{ github.workspace }}
WATCOM: ${{ github.workspace }}\watcom

- name: Fetch Docs
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -1205,26 +1147,20 @@ jobs:

# Cache OpenWatcom because it takes quite a while to download and
# decompress.
- name: Cache OpenWatcom
- name: Cache zinc
uses: actions/cache@v4
id: cache-watcom-zinc
with:
path: |
${{github.workspace}}\watcom
${{github.workspace}}\zinc
key: os2-watcom-1.9+openzinc1+v2
- name: Get OpenWatcom 1.9
if: steps.cache-watcom-zinc.outputs.cache-hit != 'true'
key: os2-openzinc1+v2
- name: Open Watcom setup
uses: open-watcom/setup-watcom@v0
with:
version: "2.0-64"
- name: Get zinc
if: steps.cache-zinc.outputs.cache-hit != 'true'
run: |
if (Test-Path watcom) {
Remove-Item watcom -Force
}
mkdir watcom
cd watcom
wget https://github.com/open-watcom/open-watcom-1.9/releases/download/ow1.9/open-watcom-c-win32-1.9.exe -outfile open-watcom-c-win32-1.9.exe
7z x open-watcom-c-win32-1.9.exe
cd ..
mkdir zinc
cd zinc
wget ${{ env.OPENZINC }} -outfile OZ1.zip
Expand All @@ -1234,14 +1170,6 @@ jobs:
shell: powershell
- name: Kermit/2 Build
run: |
SET PATH=%WATCOM%\BINW;%PATH%
SET PATH=%WATCOM%\BINNT;%PATH%
SET INCLUDE=%WATCOM%\H;%INCLUDE%
SET EDPATH=%WATCOM%\EDDAT
SET WHTMLHELP=%WATCOM%\BINNT\HELP
SET WIPFC=%WATCOM%\WIPFC
call setenv.bat
cd kermit\k95
call mkos2.bat
Expand All @@ -1262,31 +1190,20 @@ jobs:
working-directory: ${{ github.workspace }}
env:
ROOT: ${{ github.workspace }}
WATCOM: ${{ github.workspace }}\watcom
- name: Dialer Build
run: |
SET PATH=%WATCOM%\BINW;%PATH%
SET PATH=%WATCOM%\BINNT;%PATH%
SET INCLUDE=%WATCOM%\H;%INCLUDE%
SET EDPATH=%WATCOM%\EDDAT
SET WHTMLHELP=%WATCOM%\BINNT\HELP
SET WIPFC=%WATCOM%\WIPFC
call setenv.bat
cd kermit\dialer
call mkos2.bat
shell: cmd
working-directory: ${{ github.workspace }}
env:
ROOT: ${{ github.workspace }}
WATCOM: ${{ github.workspace }}\watcom
- name: Make Dialer Distribution
run: mkdist-os2.bat
shell: cmd
working-directory: ${{ github.workspace }}\kermit\dialer
env:
ROOT: ${{ github.workspace }}
WATCOM: ${{ github.workspace }}\watcom
- name: Prepare Artifact
shell: cmd
working-directory: ${{ github.workspace }}\kermit\k95
Expand Down

0 comments on commit 470b2e6

Please sign in to comment.