-
Notifications
You must be signed in to change notification settings - Fork 108
60 lines (56 loc) · 1.5 KB
/
ow-libc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: ow-libc
on:
push:
paths:
- 'elks/include/**'
- 'elks/tools/objtools/**'
- 'elkscmd/basic/**'
- 'include/**'
- 'libc/**'
- '.github/workflows/ow-libc.yml'
pull_request:
paths:
- 'elks/include/**'
- 'elks/tools/objtools/**'
- 'elkscmd/basic/**'
- 'include/**'
- 'libc/**'
- '.github/workflows/ow-libc.yml'
env:
TOPDIR: ${{ github.workspace }}
TOOLDIR: ${{ github.workspace }}/elks/tools/objtools
SAMPLEDIR: ${{ github.workspace }}/elkscmd/rootfs_template/root
jobs:
build:
name: OW LIBC build
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- runner: ubuntu-latest
arch: x64
# - runner: macos-13
# arch: x64
# - runner: macos-14
# arch: arm64
steps:
- name: checkout ELKS
uses: actions/checkout@v4
- name: Open Watcom setup
uses: open-watcom/setup-watcom@v0
with:
version: "2.0-64"
- name: LIBC build on ${{ matrix.runner }}-${{ matrix.arch }}
working-directory: libc
run: |
make -f watcom.mk clean
make -f watcom.mk
- name: build ELKS sample
working-directory: elkscmd/basic
run: |
rm -f basic.obj host.obj host-stubs.obj basic.os2
$TOOLDIR/ewcc basic.c
$TOOLDIR/ewcc host.c
$TOOLDIR/ewcc host-stubs.c
$TOOLDIR/ewlink basic.obj host.obj host-stubs.obj
cp basic.os2 $SAMPLEDIR