Skip to content

Commit 977e218

Browse files
andrewbirdPerditionC
authored andcommitted
CI: Build with Turbo C 2.01 if available
1 parent 6412ab9 commit 977e218

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323

2424
- name: Package install
2525
run: ./ci_prereq.sh
26+
env:
27+
TC201_ARCHIVE_PATHNAME: ${{ vars.TC201_ARCHIVE_PATHNAME }}
28+
TC201_ARCHIVE_FILENAME: ${{ vars.TC201_ARCHIVE_FILENAME }}
29+
TC201_ARCHIVE_PASSPHRASE: ${{ secrets.TC201_ARCHIVE_PASSPHRASE }}
2630

2731
- name: build
2832
run: ./ci_build.sh

ci_prereq.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ DEVEL=${IBIBLIO_PATH}/devel
5353
# get watcom for DOS
5454
[ -f watcomc.zip ] || wget --no-verbose ${DEVEL}/watcomc.zip
5555

56+
# get Turbo C 2.01 (maybe encrypted) tar file
57+
if [ -n "${TC201_ARCHIVE_FILENAME}" ] && [ ! -f ${TC201_ARCHIVE_FILENAME} ] ; then
58+
echo "Downloading Turbo C 2.01"
59+
wget --no-verbose ${TC201_ARCHIVE_PATHNAME}/${TC201_ARCHIVE_FILENAME}
60+
fi
61+
5662
mkdir -p ${HOME}/.dosemu/drive_c
5763
cd ${HOME}/.dosemu/drive_c && (
5864

@@ -83,4 +89,15 @@ cd ${HOME}/.dosemu/drive_c && (
8389

8490
unzip -LL -q ${HERE}/watcomc.zip
8591
echo PATH to watcom binaries is 'c:/devel/watcomc/binw'
92+
93+
# Turbo C
94+
if [ -f ${HERE}/${TC201_ARCHIVE_FILENAME} ] && [ -n "${TC201_ARCHIVE_PASSPHRASE}" ] ; then
95+
echo Decrypting and unpacking Turbo C 2.01
96+
echo "${TC201_ARCHIVE_PASSPHRASE}" | gpg --decrypt --batch --passphrase-fd 0 ${HERE}/${TC201_ARCHIVE_FILENAME} | tar -jxf -
97+
elif [ -f ${HERE}/${TC201_ARCHIVE_FILENAME} ] ; then
98+
echo Unpacking Turbo C 2.01
99+
tar -jxf ${HERE}/${TC201_ARCHIVE_FILENAME}
100+
else
101+
echo No Turbo C 2.01 archive available
102+
fi
86103
)

0 commit comments

Comments
 (0)