Skip to content

Commit 58085b4

Browse files
authored
CI: consolidate workflows + fix master/main PR triggers (#46)
* CI: consolidate workflows and PR triggers * tests: include lltdWire.h for clang
1 parent 6886cbd commit 58085b4

File tree

3 files changed

+57
-107
lines changed

3 files changed

+57
-107
lines changed

.github/workflows/build.yml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: build
1+
name: ci
22

33
on:
44
push:
55
branches: [main, master]
66
tags: ['v*']
77
pull_request:
8-
branches: [main]
8+
branches: [main, master]
99
workflow_dispatch:
1010
inputs:
1111
run_privileged:
@@ -18,7 +18,7 @@ on:
1818
default: false
1919

2020
concurrency:
21-
group: build-${{ github.ref }}
21+
group: ci-${{ github.ref }}
2222
cancel-in-progress: true
2323

2424
jobs:
@@ -155,6 +155,58 @@ jobs:
155155
set -euo pipefail
156156
make integration-test PLATFORM=linux-embedded
157157
158+
openwatcom:
159+
name: openwatcom-win16-win9x
160+
runs-on: ubuntu-24.04
161+
steps:
162+
- name: Checkout
163+
uses: actions/checkout@v4
164+
165+
- name: Install Open Watcom
166+
run: |
167+
set -euo pipefail
168+
sudo dpkg --add-architecture i386
169+
sudo apt-get update
170+
sudo apt-get install -y curl libc6:i386 libstdc++6:i386
171+
echo "=== Downloading Open Watcom snapshot ==="
172+
curl -fL -o /tmp/ow-snapshot.tar.xz "https://github.com/open-watcom/open-watcom-v2/releases/download/Last-CI-build/ow-snapshot.tar.xz"
173+
echo "=== Extracting to /opt/openwatcom ==="
174+
sudo mkdir -p /opt/openwatcom
175+
sudo tar -xJf /tmp/ow-snapshot.tar.xz -C /opt/openwatcom --strip-components=1
176+
test -x /opt/openwatcom/binl64/wcc
177+
echo "WATCOM=/opt/openwatcom" >> "$GITHUB_ENV"
178+
echo "INCLUDE=/opt/openwatcom/h:/opt/openwatcom/h/win" >> "$GITHUB_ENV"
179+
echo "EDPATH=/opt/openwatcom/eddat" >> "$GITHUB_ENV"
180+
echo "WIPFC=/opt/openwatcom/wipfc" >> "$GITHUB_ENV"
181+
echo "/opt/openwatcom/binl64" >> "$GITHUB_PATH"
182+
183+
- name: Build Win16 + Win9x + INF templates
184+
run: |
185+
set -euo pipefail
186+
make windows-openwatcom
187+
188+
- name: Upload Windows artifacts
189+
uses: actions/upload-artifact@v4
190+
with:
191+
name: openwatcom-windows
192+
path: dist/windows/**
193+
194+
win32:
195+
name: windows-win32-user-mode
196+
runs-on: windows-2022
197+
steps:
198+
- name: Checkout
199+
uses: actions/checkout@v4
200+
201+
- name: Build Win32 user-mode
202+
run: powershell -File scripts/windows-build.ps1
203+
204+
- name: Upload Win32 artifacts
205+
uses: actions/upload-artifact@v4
206+
with:
207+
name: win32-user-mode
208+
path: dist/windows/win32/**
209+
158210
build:
159211
name: build-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ matrix.backend }}
160212
runs-on: ${{ matrix.os }}

.github/workflows/ci.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

tests/test_lltd_tlv_ops.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "lltdTestShim.h"
99
#include "lltdEndian.h"
1010
#include "lltdTlvOps.h"
11+
#include "lltdWire.h"
1112

1213
static void test_compare_ethernet_address_equal(void **state) {
1314
(void)state;
@@ -130,7 +131,7 @@ static void test_set_qos_characteristics_tlv_endianness(void **state) {
130131

131132
uint32_t *value = (uint32_t *)(buffer + sizeof(generic_tlv_t));
132133
uint32_t expected = (uint32_t)(Config_TLV_QOS_L2Fwd | Config_TLV_QOS_PrioTag | Config_TLV_QOS_VLAN) << 16;
133-
assert_int_equal(*value, htonl(expected));
134+
assert_int_equal(*value, lltd_htonl(expected));
134135
}
135136

136137
// Test icon image TLV has zero length (empty stub)

0 commit comments

Comments
 (0)