-
Notifications
You must be signed in to change notification settings - Fork 31
Add generic port API, POSIX reference port, template port, and porting guide #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: Build and Run Generic Port | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ 'master', 'main', 'release/**' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - name: "Standard" | ||
| flags: "" | ||
| - name: "ASAN" | ||
| flags: "ASAN=1" | ||
| - name: "DEBUG" | ||
| flags: "DEBUG=1" | ||
| - name: "DEBUG ASAN" | ||
| flags: "DEBUG=1 ASAN=1" | ||
|
|
||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| name: Generic Port (${{ matrix.name }}) | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Checkout wolfssl | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: wolfssl/wolfssl | ||
| path: wolfssl | ||
|
|
||
| - name: Build generic server | ||
| run: cd port/posix/server && make -j ${{ matrix.flags }} WOLFSSL_DIR=../../../wolfssl | ||
|
|
||
| - name: Build generic client | ||
| run: cd port/posix/client && make -j ${{ matrix.flags }} WOLFSSL_DIR=../../../wolfssl | ||
|
Comment on lines
+36
to
+40
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make -j ${{ matrix.flags }}is passing variable assignments (e.g.ASAN=1) as the argument to-j, which expects a job count; this will fail with "invalid -j argument" in non-Standard matrix entries. Pass${{ matrix.flags }}as separate make arguments (e.g.make -j ${{ runner.cpu_cores }} ${{ matrix.flags }} ...) or drop-jif you don’t want parallelism.