Skip to content

Commit 38ba2df

Browse files
committed
ci: add new workflow
1 parent 3472f36 commit 38ba2df

File tree

1 file changed

+110
-0
lines changed

1 file changed

+110
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
name: CI-Build
2+
run-name: CI build
3+
4+
on:
5+
pull_request:
6+
branches: '*'
7+
paths:
8+
- '**'
9+
- '!.github/**'
10+
- '!README.md'
11+
push:
12+
branches:
13+
- master
14+
paths:
15+
- '**'
16+
- '!.github/**'
17+
- '!README.md'
18+
workflow_dispatch:
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
25+
jobs:
26+
OpenWatcom-1:
27+
strategy:
28+
matrix:
29+
ver:
30+
- id: '1.9'
31+
- id: '2.0'
32+
targ:
33+
- id: 'dos'
34+
title: 'DOS'
35+
- id: 'os2'
36+
title: 'OS/2'
37+
- id: 'win32'
38+
title: 'WIN32'
39+
- id: 'linux386'
40+
title: 'Linux'
41+
host:
42+
- id: 'Linux'
43+
image: 'ubuntu-latest'
44+
- id: 'Windows'
45+
image: 'windows-latest'
46+
runs-on: ${{matrix.host.image}}
47+
name: ${{matrix.targ.title}} - Open Watcom ${{matrix.ver.id}} (${{matrix.host.id}} host)
48+
49+
steps:
50+
- name: checkout
51+
uses: actions/checkout@v4
52+
- name: Open Watcom setup
53+
uses: open-watcom/setup-watcom@v0
54+
with:
55+
version: ${{matrix.ver.id}}
56+
- name: build
57+
run: |
58+
wmake -f Mkfiles/openwcom.mak ${{matrix.targ.id}}
59+
Linux-1:
60+
strategy:
61+
matrix:
62+
ver:
63+
- id: 'gcc'
64+
title: Linux - GCC (Linux host)
65+
runs-on: ubuntu-latest
66+
name: ${{matrix.ver.title}}
67+
68+
steps:
69+
- name: checkout
70+
uses: actions/checkout@v4
71+
- name: install perl module
72+
run: sudo cpan -i Font::TTF::Font Sort::Versions
73+
shell: bash
74+
- name: autogen
75+
run: |
76+
./autogen.sh
77+
shell: bash
78+
- name: configure
79+
run: |
80+
./configure
81+
shell: bash
82+
- name: build
83+
run: |
84+
make all
85+
shell: bash
86+
Windows-1:
87+
strategy:
88+
matrix:
89+
image:
90+
- version: 2022
91+
osname: windows-2022
92+
vs: 2022
93+
- version: 2025
94+
osname: windows-2025
95+
vs: 2022
96+
runs-on: ${{matrix.image.osname}}
97+
name: WIN64 - Visual Studio ${{matrix.image.vs}} (Windows ${{matrix.image.version}} host)
98+
99+
steps:
100+
- name: checkout
101+
uses: actions/checkout@v4
102+
- name: Enable Developer Command Prompt
103+
uses: ilammy/msvc-dev-cmd@v1
104+
with:
105+
vsversion: ${{matrix.image.vs}}
106+
arch: amd64
107+
- name: build
108+
run: |
109+
nmake /f Mkfiles\msvc.mak all
110+
shell: cmd

0 commit comments

Comments
 (0)