Skip to content

Commit 677eeb3

Browse files
add netxduo compile test
1 parent 50835c1 commit 677eeb3

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/threadx.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: ThreadXBuild Test
2+
3+
on:
4+
push:
5+
branches: [ 'master', 'main', 'release/**' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-22.04
13+
timeout-minutes: 10:
14+
15+
steps:
16+
- name: Cache NetXDuo bundle
17+
id: cache-netxduo
18+
uses: actions/cache@v3
19+
with:
20+
path: ./v6.4.3_rel.tar.gz
21+
key: netxduo-bundle-v6.4.3_rel
22+
23+
- name: Download NetXDuo bundle if not cached
24+
if: steps.cache-netxduo.outputs.cache-hit != 'true'
25+
run: |
26+
wget https://github.com/eclipse-threadx/netxduo/archive/refs/tags/v6.4.3_rel.tar.gz
27+
28+
- name: Extract NetXDuo bundle
29+
run: |
30+
mkdir -p netxduo_src
31+
tar -xzf v6.4.3_rel.tar.gz -C netxduo_src --strip-components=1
32+
33+
- name: Install NetXDuo Dependencies
34+
working-directory: ./netxduo_src
35+
run: |
36+
./scripts/install.sh
37+
38+
- name: Build NetXDuo
39+
working-directory: ./netxduo_src
40+
run: |
41+
rm -rf test/cmake/threadx
42+
rm -rf test/cmake/filex
43+
./scripts/build_nxd64.sh
44+
45+
- uses: actions/checkout@v4
46+
with:
47+
repository: wolfssl/wolfssl
48+
path: wolfssl
49+
50+
- name: wolfssl autogen
51+
working-directory: ./wolfssl
52+
run: ./autogen.sh
53+
54+
- name: wolfssl configure
55+
working-directory: ./wolfssl
56+
run: ./configure --enable-static --disable-shared --enable-enckeys --disable-examples --disable-benchmark --disable-crypttests CPPFLAGS="-DTHREADX -DHAVE_NETX -I${{ github.workspace }}/netxduo_src/common/inc -I${{ github.workspace }}/netxduo_src/ports/linux/gnu/inc -I${{ github.workspace }}/netxduo_src/test/cmake/netxduo64/build/libs/inc" LDFLAGS="-L${{ github.workspace }}/netxduo_src/test/cmake/netxduo64/build/default_build_coverage/netxduo -lnetxduo -L${{ github.workspace }}/netxduo_src/test/cmake/netxduo64/build/libs/threadx -lthreadx"
57+
58+
- name: wolfssl make
59+
working-directory: ./wolfssl
60+
run: |
61+
sed -i 's/ -Werror//' Makefile
62+
make

0 commit comments

Comments
 (0)