From 43cbfe3d0d4dd0e656052d0c144b27671dfdbffb Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:23:21 -0600 Subject: [PATCH 1/4] Create build-and-test.yml adds basic build and test CI on PRs --- .github/workflows/build-and-test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 00000000..414585a2 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,20 @@ +name: Build and Test + +on: + push: + branches: [ 'master', 'main', 'release/**' ] + pull_request: + branches: [ '*' ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: build-and-test-asan-debug + run: make DEBUG=1 ASAN=1 run + - name: build-and-test + run: make run + From 016cb2f8268bcfa24e83c4555fdcb9ef0cab37e9 Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:25:49 -0600 Subject: [PATCH 2/4] Update build-and-test.yml --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 414585a2..435e6d0b 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: build-and-test-asan-debug - run: make DEBUG=1 ASAN=1 run + run: cd test && make DEBUG=1 ASAN=1 run - name: build-and-test - run: make run + run: cd test && make run From 5949304f42b699b8130ee9917121a752b96e4752 Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:34:00 -0600 Subject: [PATCH 3/4] Update build-and-test.yml --- .github/workflows/build-and-test.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 435e6d0b..2209996f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -13,8 +13,19 @@ jobs: steps: - uses: actions/checkout@v3 - - name: build-and-test-asan-debug - run: cd test && make DEBUG=1 ASAN=1 run - - name: build-and-test - run: cd test && make run + + # pull and build wolfssl + - name: Checkout wolfssl + uses: actions/checkout@master + with: + repository: wolfssl/wolfssl + path: wolfssl + + # Build and test debug build with ASAN + - name: Build and test ASAN DEBUG + run: cd test && make DEBUG=1 ASAN=1 WOLFSSL_DIR=../wolfssl run + + # Build and test standard build + - name: Build and test + run: cd test && make WOLFSSL_DIR=../wolfssl run From 3bffa12b8ca39b036daf7363ca1e3843f425aa78 Mon Sep 17 00:00:00 2001 From: Brett Nicholas <7547222+bigbrett@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:37:33 -0600 Subject: [PATCH 4/4] Update build-and-test.yml --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2209996f..44c72e6e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@master # pull and build wolfssl - name: Checkout wolfssl