forked from wolfSSL/wolfssl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Correct cmake script to support Open Watcom toolchain (wolfSSL#8167) * Fix thread start callback prototype for Open Watcom toolchain (wolfSSL#8175) * Added GitHub CI action
- Loading branch information
Showing
7 changed files
with
142 additions
and
47 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Build Watcom C | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
#branches: [ 'master', 'main', 'release/**' ] | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
wolfssl_watcomc_linux: | ||
if: github.repository_owner == 'wolfssl' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache OpenWatcom | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-openwatcom | ||
with: | ||
path: ~/openwatcom | ||
key: ${{ runner.os }}-build-${{ env.cache-name }} | ||
|
||
- name: Download OpenWatcom if not cached | ||
shell: bash | ||
run: if [ ! -d ~/openwatcom/binl64 ]; then wget --no-verbose 'https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/open-watcom-2_0-c-linux-x64' -O ~/ow.zip && mkdir -p ~/openwatcom && cd ~/openwatcom && unzip ~/ow.zip && chmod -R a+rx ~/openwatcom ; fi | ||
|
||
- name: Checkout wolfSSL | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfSSL/wolfssl | ||
ref: master | ||
path: wolfssl | ||
|
||
- name: Build wolfSSL | ||
working-directory: wolfssl | ||
shell: bash | ||
run: | ||
source ~/openwatcom/owsetenv.sh | ||
cmake -B build -G "Watcom WMake" -D CMAKE_VERBOSE_MAKEFILE=TRUE -D CMAKE_SYSTEM_NAME=linux -D CMAKE_SYSTEM_PROCESSOR=x86 -D WOLFSSL_ASM=no -D WOLFSSL_SINGLE_THREADED=yes -D BUILD_SHARED_LIBS=no -D WOLFSSL_EXAMPLES=no -D WOLFSSL_CRYPT_TESTS=no | ||
cmake --build ./build/ | ||
|
||
wolfssl_watcomc_windows: | ||
if: github.repository_owner == 'wolfssl' | ||
runs-on: windows-latest | ||
steps: | ||
- name: Setup OpenOatcom V2 | ||
uses: open-watcom/setup-watcom@v0 | ||
with: | ||
version: "2.0" | ||
|
||
- name: Checkout wolfSSL | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfSSL/wolfssl | ||
ref: master | ||
path: wolfssl | ||
|
||
- name: Build wolfSSL | ||
working-directory: wolfssl | ||
shell: bash | ||
run: | ||
cmake -B build -G "Watcom WMake" -D CMAKE_VERBOSE_MAKEFILE=TRUE -D CMAKE_SYSTEM_NAME=Windows -D CMAKE_SYSTEM_PROCESSOR=x86 -D WOLFSSL_ASM=no -D WOLFSSL_SINGLE_THREADED=yes -D BUILD_SHARED_LIBS=no -D WOLFSSL_EXAMPLES=no -D WOLFSSL_CRYPT_TESTS=no | ||
cmake --build ./build/ |
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
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
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