From df67e222f1c4746e63c6e27c0689c3aae926deaf Mon Sep 17 00:00:00 2001 From: Jiri Malak Date: Fri, 9 Aug 2024 20:01:42 +0200 Subject: [PATCH 1/2] actions: add OW libc test build on Ubuntu and OSX --- .github/workflows/cross.yml | 1 + .github/workflows/main.yml | 2 ++ .github/workflows/ow-libc.yml | 60 +++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 .github/workflows/ow-libc.yml diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index d4d195b37..eb7c58610 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -4,6 +4,7 @@ on: push: paths: - '.github/workflows/cross.yml' + - '!.github/workflows/ow-libc.yml' - 'tools/*' jobs: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c623a500a..72fd1f80d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/.github/workflows/ow-libc.yml b/.github/workflows/ow-libc.yml new file mode 100644 index 000000000..0a5a7ad40 --- /dev/null +++ b/.github/workflows/ow-libc.yml @@ -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 + From f1eee826c63061332aea987db5923484839be244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Mal=C3=A1k?= Date: Fri, 9 Aug 2024 23:34:01 +0200 Subject: [PATCH 2/2] limit build only for Linux --- .github/workflows/ow-libc.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ow-libc.yml b/.github/workflows/ow-libc.yml index 0a5a7ad40..b70440952 100644 --- a/.github/workflows/ow-libc.yml +++ b/.github/workflows/ow-libc.yml @@ -31,10 +31,10 @@ jobs: include: - runner: ubuntu-latest arch: x64 - - runner: macos-13 - arch: x64 - - runner: macos-14 - arch: arm64 +# - runner: macos-13 +# arch: x64 +# - runner: macos-14 +# arch: arm64 steps: - name: checkout ELKS