Skip to content

Commit

Permalink
Merge pull request #1960 from jmalak/ow-actions
Browse files Browse the repository at this point in the history
actions: add OW libc test build on Ubuntu and OSX
  • Loading branch information
ghaerr authored Aug 10, 2024
2 parents 3ca3a8b + f1eee82 commit 6ac56e1
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- '.github/workflows/cross.yml'
- '!.github/workflows/ow-libc.yml'
- 'tools/*'

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
paths:
- '**'
- '!.github/workflows/cross.yml'
- '!.github/workflows/ow-libc.yml'
- '!tools/*'
pull_request:
paths:
- '**'
- '!.github/workflows/cross.yml'
- '!.github/workflows/ow-libc.yml'
- '!tools/*'

jobs:
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/ow-libc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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

0 comments on commit 6ac56e1

Please sign in to comment.