Skip to content

Commit 1f1f553

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

File tree

1 file changed

+114
-0
lines changed

1 file changed

+114
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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+
targ:
30+
- id: 'dos'
31+
title: 'DOS'
32+
- id: 'os2'
33+
title: 'OS/2'
34+
- id: 'win32'
35+
title: 'WIN32'
36+
- id: 'linux386'
37+
title: 'Linux'
38+
host:
39+
- id: 'Linux'
40+
image: 'ubuntu-latest'
41+
- id: 'Windows'
42+
image: 'windows-latest'
43+
comp:
44+
- id: '1.9'
45+
- id: '2.0'
46+
runs-on: ${{matrix.host.image}}
47+
name: ${{matrix.targ.title}} - Open Watcom ${{matrix.comp.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.comp.id}}
56+
- name: build
57+
run: |
58+
wmake -f Mkfiles/openwcom.mak ${{matrix.targ.id}}
59+
Linux-1:
60+
strategy:
61+
matrix:
62+
targ:
63+
- id: 'Linux'
64+
host:
65+
- id: 'Ubuntu'
66+
image: 'ubuntu-latest'
67+
comp:
68+
- id: 'GCC'
69+
runs-on: ${{matrix.host.image}}
70+
name: ${{matrix.targ.id}} - ${{matrix.comp.id}} (${{matrix.host.id}} host)
71+
72+
steps:
73+
- name: checkout
74+
uses: actions/checkout@v4
75+
- name: install perl module
76+
run: sudo cpan -i Font::TTF::Font Sort::Versions
77+
shell: bash
78+
- name: autogen
79+
run: |
80+
./autogen.sh
81+
shell: bash
82+
- name: configure
83+
run: |
84+
./configure
85+
shell: bash
86+
- name: build
87+
run: |
88+
make all
89+
shell: bash
90+
Windows-1:
91+
strategy:
92+
matrix:
93+
targ:
94+
- id: 'WIN64'
95+
host:
96+
- id: 'Windows 2025'
97+
image: 'windows-latest'
98+
comp:
99+
- id: '2022'
100+
runs-on: ${{matrix.host.image}}
101+
name: ${{matrix.targ.id}} - Visual Studio ${{matrix.comp.id}} (${{matrix.host.id}} host)
102+
103+
steps:
104+
- name: checkout
105+
uses: actions/checkout@v4
106+
- name: Enable Developer Command Prompt
107+
uses: ilammy/msvc-dev-cmd@v1
108+
with:
109+
vsversion: ${{matrix.comp.id}}
110+
arch: amd64
111+
- name: build
112+
run: |
113+
nmake /f Mkfiles\msvc.mak all
114+
shell: cmd

0 commit comments

Comments
 (0)