ver.c: try 21.3306 true version call, if zero then use 21.3000 version #253
This file contains 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: Build | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- ready_for_review | |
- reopened | |
- synchronize | |
push: | |
jobs: | |
build: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: prerequisites | |
run: ./ci_prereq.sh | |
env: | |
TC201_ARCHIVE_PATHNAME: ${{ vars.TC201_ARCHIVE_PATHNAME }} | |
TC201_ARCHIVE_FILENAME: ${{ vars.TC201_ARCHIVE_FILENAME }} | |
TC201_ARCHIVE_PASSPHRASE: ${{ secrets.TC201_ARCHIVE_PASSPHRASE }} | |
- name: build | |
run: ./ci_build.sh | |
- name: test | |
run: ./ci_test.sh | |
- name: make snapshot name | |
id: snapshotname | |
run: | | |
( | |
today=`date -u +%F | tr '\n' '-'` | |
s_sha=`echo -n ${GITHUB_SHA} | cut -c1-8` | |
printf "fname=snapshot-%s%s\n" $today $s_sha >> $GITHUB_OUTPUT | |
) | |
- name: upload | |
if: github.repository == 'FDOS/freecom' && | |
(github.event_name == 'push' || github.event.pull_request.merged == true) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ steps.snapshotname.outputs.fname }} | |
path: _output | |
test-ow-cross-compile: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
strategy: | |
matrix: | |
ow: | |
- name: '1.9' | |
id: '1.9' | |
- name: '2.0' | |
id: '2.0-64' | |
host: | |
- name: 'Windows' | |
id: 'nt' | |
image: 'windows-latest' | |
cmd: 'build.bat watcom upx english' | |
- name: 'Mac OSX-ARM' | |
id: 'osx' | |
image: 'macos-latest' | |
cmd: './build.sh watcom upx english' | |
- name: 'Linux' | |
id: 'linux' | |
image: 'ubuntu-latest' | |
cmd: './build.sh watcom upx english' | |
exclude: | |
- { ow: { name: '1.9' }, host: { id: 'osx' } } | |
runs-on: ${{matrix.host.image}} | |
name: Test OW ${{matrix.ow.name}} cross-compile (${{matrix.host.name}}) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Nasm install | |
uses: ilammy/setup-nasm@v1 | |
- name: UPX install | |
uses: "./.github/actions/upx-inst" | |
- name: Open Watcom install | |
uses: open-watcom/setup-watcom@v0 | |
with: | |
version: ${{matrix.ow.id}} | |
- name: build | |
uses: "./.github/actions/build" | |
with: | |
cmd: ${{matrix.host.cmd}} |