diff --git a/.github/workflows/footprint.yml b/.github/workflows/footprint.yml index 1c7c81e6..a92c3e70 100644 --- a/.github/workflows/footprint.yml +++ b/.github/workflows/footprint.yml @@ -10,7 +10,7 @@ jobs: footprint_test: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-build-cmake-dot-config.yml b/.github/workflows/test-build-cmake-dot-config.yml index 9016c009..fd704d33 100644 --- a/.github/workflows/test-build-cmake-dot-config.yml +++ b/.github/workflows/test-build-cmake-dot-config.yml @@ -10,7 +10,7 @@ jobs: name: cmake .config test (${{ matrix.target }}) runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 15 strategy: diff --git a/.github/workflows/test-build-cmake-presets.yml b/.github/workflows/test-build-cmake-presets.yml index 1c445a15..1cb47af9 100644 --- a/.github/workflows/test-build-cmake-presets.yml +++ b/.github/workflows/test-build-cmake-presets.yml @@ -14,7 +14,7 @@ jobs: name: Build on Ubuntu runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 20 defaults: run: diff --git a/.github/workflows/test-build-cmake-script.yml b/.github/workflows/test-build-cmake-script.yml index 779cf94d..cd8b4bcc 100644 --- a/.github/workflows/test-build-cmake-script.yml +++ b/.github/workflows/test-build-cmake-script.yml @@ -14,7 +14,7 @@ jobs: name: Build wolfBoot (target=${{ matrix.target }}) runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 15 strategy: diff --git a/.github/workflows/test-build-cmake.yml b/.github/workflows/test-build-cmake.yml index ede77d64..beae27df 100644 --- a/.github/workflows/test-build-cmake.yml +++ b/.github/workflows/test-build-cmake.yml @@ -8,7 +8,7 @@ jobs: cmake_automated_test: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-build-lms.yml b/.github/workflows/test-build-lms.yml index 0839ee35..4e601d7b 100644 --- a/.github/workflows/test-build-lms.yml +++ b/.github/workflows/test-build-lms.yml @@ -19,7 +19,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-build-mcux-sdk-manifests.yml b/.github/workflows/test-build-mcux-sdk-manifests.yml index 721574ce..cad0daef 100644 --- a/.github/workflows/test-build-mcux-sdk-manifests.yml +++ b/.github/workflows/test-build-mcux-sdk-manifests.yml @@ -22,7 +22,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-build-mcux-sdk.yml b/.github/workflows/test-build-mcux-sdk.yml index 0aa50458..5ba8d422 100644 --- a/.github/workflows/test-build-mcux-sdk.yml +++ b/.github/workflows/test-build-mcux-sdk.yml @@ -19,7 +19,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-build-pico-sdk.yml b/.github/workflows/test-build-pico-sdk.yml index 15fec87d..ce429fc9 100644 --- a/.github/workflows/test-build-pico-sdk.yml +++ b/.github/workflows/test-build-pico-sdk.yml @@ -22,7 +22,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-build-powerpc.yml b/.github/workflows/test-build-powerpc.yml new file mode 100644 index 00000000..103dbc81 --- /dev/null +++ b/.github/workflows/test-build-powerpc.yml @@ -0,0 +1,47 @@ +name: Wolfboot Reusable Build Workflow (PowerPC) + +on: + + workflow_call: + inputs: + arch: + required: true + type: string + config-file: + required: true + type: string + make-args: + required: false + type: string + +jobs: + + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/wolfssl/wolfboot-ci-powerpc:v0.9.2 + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Trust workspace + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" + + - name: make clean + run: | + make distclean + + - name: Select config + run: | + cp ${{inputs.config-file}} .config + + - name: Build tools + run: | + make -C tools/keytools && make -C tools/bin-assemble + + - name: Build wolfboot + run: | + make ${{inputs.make-args}} diff --git a/.github/workflows/test-build-psoc6.yml b/.github/workflows/test-build-psoc6.yml index e95404fb..d1061a8a 100644 --- a/.github/workflows/test-build-psoc6.yml +++ b/.github/workflows/test-build-psoc6.yml @@ -19,7 +19,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-build-stm32cube.yml b/.github/workflows/test-build-stm32cube.yml index 22ad0393..14857e9a 100644 --- a/.github/workflows/test-build-stm32cube.yml +++ b/.github/workflows/test-build-stm32cube.yml @@ -23,7 +23,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 0839ee35..4e601d7b 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -19,7 +19,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-cppcheck.yml b/.github/workflows/test-cppcheck.yml index 0f86d384..08bff771 100644 --- a/.github/workflows/test-cppcheck.yml +++ b/.github/workflows/test-cppcheck.yml @@ -10,7 +10,7 @@ jobs: cppcheck: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-custom-tlv-simulator.yml b/.github/workflows/test-custom-tlv-simulator.yml index 652e2b61..165e80a1 100644 --- a/.github/workflows/test-custom-tlv-simulator.yml +++ b/.github/workflows/test-custom-tlv-simulator.yml @@ -10,7 +10,7 @@ jobs: custom_tlv_simulator_tests: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-elf-scattered.yml b/.github/workflows/test-elf-scattered.yml index 5580b1e6..0b5bb6f1 100644 --- a/.github/workflows/test-elf-scattered.yml +++ b/.github/workflows/test-elf-scattered.yml @@ -10,7 +10,7 @@ jobs: elf_scattered_test: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-external-library-paths.yml b/.github/workflows/test-external-library-paths.yml index fcdfbdff..a73067de 100644 --- a/.github/workflows/test-external-library-paths.yml +++ b/.github/workflows/test-external-library-paths.yml @@ -11,7 +11,7 @@ jobs: test_external_libs: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 # Matrix to test multiple configurations @@ -79,12 +79,6 @@ jobs: WOLFBOOT_LIB_WOLFPKCS11="$(realpath ../external-libs/wolfPKCS11)" \ WOLFBOOT_LIB_WOLFHSM="$(realpath ../external-libs/wolfHSM)" - # If building unit tests, install libcheck - - name: install libcheck - if: matrix.test-config.is-unit-test == true - run: echo "libcheck already installed in container" - - # Build unit tests with external paths - name: Build unit tests with external library paths if: matrix.test-config.is-unit-test == true diff --git a/.github/workflows/test-filesystem.yml b/.github/workflows/test-filesystem.yml index 449d6d3b..592b0da4 100644 --- a/.github/workflows/test-filesystem.yml +++ b/.github/workflows/test-filesystem.yml @@ -10,7 +10,7 @@ jobs: build-lib-fs-example: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/test-hooks-simulator.yml b/.github/workflows/test-hooks-simulator.yml index 09cde6d7..ef46ca20 100644 --- a/.github/workflows/test-hooks-simulator.yml +++ b/.github/workflows/test-hooks-simulator.yml @@ -10,7 +10,7 @@ jobs: hooks_test: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 30 strategy: fail-fast: false diff --git a/.github/workflows/test-keytools.yml b/.github/workflows/test-keytools.yml index 0f9eb88d..4a7217db 100644 --- a/.github/workflows/test-keytools.yml +++ b/.github/workflows/test-keytools.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index b18646b8..fe0a91b3 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -10,7 +10,7 @@ jobs: test-lib: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 strategy: diff --git a/.github/workflows/test-parse-tools.yml b/.github/workflows/test-parse-tools.yml index 5b77710d..1971f50c 100644 --- a/.github/workflows/test-parse-tools.yml +++ b/.github/workflows/test-parse-tools.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-powerpc:latest + image: ghcr.io/wolfssl/wolfboot-ci-powerpc:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-powerfail-simulator.yml b/.github/workflows/test-powerfail-simulator.yml index 7b131806..8ea20d54 100644 --- a/.github/workflows/test-powerfail-simulator.yml +++ b/.github/workflows/test-powerfail-simulator.yml @@ -10,7 +10,7 @@ jobs: powerfail_simulator_tests: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-sim-self-update.yml b/.github/workflows/test-sim-self-update.yml index df72b315..0c24feff 100644 --- a/.github/workflows/test-sim-self-update.yml +++ b/.github/workflows/test-sim-self-update.yml @@ -10,7 +10,7 @@ jobs: self_update_simulator_test: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-sunnyday-simulator.yml b/.github/workflows/test-sunnyday-simulator.yml index 4c3cf849..41e2ebf5 100644 --- a/.github/workflows/test-sunnyday-simulator.yml +++ b/.github/workflows/test-sunnyday-simulator.yml @@ -10,7 +10,7 @@ jobs: simulator_tests: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 30 steps: diff --git a/.github/workflows/test-units.yml b/.github/workflows/test-units.yml index 6f3e5111..a8facf2a 100644 --- a/.github/workflows/test-units.yml +++ b/.github/workflows/test-units.yml @@ -10,7 +10,7 @@ jobs: unit_tests: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 15 steps: diff --git a/.github/workflows/test-vscode.yml b/.github/workflows/test-vscode.yml index 337045fe..30a6c6c4 100644 --- a/.github/workflows/test-vscode.yml +++ b/.github/workflows/test-vscode.yml @@ -21,7 +21,7 @@ jobs: check: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-arm:latest + image: ghcr.io/wolfssl/wolfboot-ci-arm:v0.9.2 # Provide fallbacks when not workflow_dispatch env: WORKSPACE_PATH: ${{ github.event_name == 'workflow_dispatch' && inputs.workspace_path || 'IDE/VSCode/wolfBoot.code-workspace' }} diff --git a/.github/workflows/test-wolfhsm-simulator.yml b/.github/workflows/test-wolfhsm-simulator.yml index f656910f..ebf6aabc 100644 --- a/.github/workflows/test-wolfhsm-simulator.yml +++ b/.github/workflows/test-wolfhsm-simulator.yml @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest container: - image: ghcr.io/wolfssl/wolfboot-ci-sim:latest + image: ghcr.io/wolfssl/wolfboot-ci-sim:v0.9.2 timeout-minutes: 30 steps: