cross-platform version: parse config file #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DOS build (Watcom) | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: cache toolchain | |
| id: cache-tc | |
| uses: actions/cache@v5 | |
| with: | |
| path: ow | |
| key: openwatcom-cache1 | |
| - name: install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libpng-dev libjpeg-dev nasm subversion | |
| - name: install toolchain | |
| if: steps.cache-tc.outputs.cache-hit != 'true' | |
| run: | | |
| wget http://mutantstargoat.com/~nuclear/ow_bundle.tar.gz | |
| tar xzvf ow_bundle.tar.gz | |
| sed -i 's/HOME/GITHUB_WORKSPACE/g' ow/owsetenv-dos.sh | |
| - name: prepare datafiles | |
| run: | | |
| svn export svn://mutantstargoat.com/datadirs/dosvgajam datasrc | |
| tools/procdata | |
| - name: build game | |
| run: | | |
| source ow/owsetenv-dos.sh | |
| wmake | |
| cp ow/binw/dos4gw.exe . | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: watdemo | |
| path: | | |
| data/ | |
| game.exe | |
| dos4gw.exe | |
| # vi:ts=2 sts=2 sw=2 expandtab: |