-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1960 from jmalak/ow-actions
actions: add OW libc test build on Ubuntu and OSX
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
paths: | ||
- '.github/workflows/cross.yml' | ||
- '!.github/workflows/ow-libc.yml' | ||
- 'tools/*' | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||