From 6a682bc44463eb01f8821c04367d719ed2e8c38e Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Wed, 8 Oct 2025 18:34:58 +0000 Subject: [PATCH 1/2] update repo --- .devcontainer/Dockerfile | 2 +- .github/CODEOWNERS | 2 +- .github/workflows/ci.yml | 14 ++++++++++---- .github/workflows/update-emil-git-tag.yml | 8 ++++---- CMakeLists.txt | 2 +- CONTRIBUTING.md | 2 +- README.md | 22 ++++++++++++---------- integration_test/runner/Main.cpp | 2 +- release-please-config.json | 2 +- 9 files changed, 32 insertions(+), 24 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a070affb..854c6835 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,3 +1,3 @@ -FROM ghcr.io/philips-software/amp-devcontainer-cpp:v5.5.4@sha256:b572465f19d9f6c638bde27df34948ce7a88dcfbf2e83f1db796062520a5485c +FROM gabrielfrasantos/embedded-devcontainer-cpp:latest@sha256:bd4f1eb7556fad821b0a2f5ba7326fed5c19c88b4ee8475ae8f8db21e7c09b64 HEALTHCHECK NONE diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 01e61d94..8b137891 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @philips-software/awesome-embedded-projects + diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e29b7b27..25c6ee96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,9 +23,11 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2.16 + - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 with: key: ${{ github.job }}-ubuntu-latest + max-size: 2G + save: ${{ github.ref == 'refs/heads/main' }} - uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5 - uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 with: @@ -57,9 +59,11 @@ jobs: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - uses: hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2.16 + - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 with: - key: ${{ github.job }}-${{ matrix.os }} + key: ${{ github.job }}-ubuntu-latest + max-size: 2G + save: ${{ github.ref == 'refs/heads/main' }} - uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 with: configurePreset: "host-single-Debug" @@ -105,9 +109,11 @@ jobs: with: release: ${{ matrix.gcc }} - run: sudo apt-get update && sudo apt-get install ninja-build xsltproc - - uses: hendrikmuhs/ccache-action@53911442209d5c18de8a31615e0923161e435875 # v1.2.16 + - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 with: key: ${{ matrix.gcc }}-${{ matrix.configuration }}-${{ matrix.target }} + max-size: 2G + save: ${{ github.ref == 'refs/heads/main' }} - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: name: hal_st diff --git a/.github/workflows/update-emil-git-tag.yml b/.github/workflows/update-emil-git-tag.yml index 32b7dcf2..25199ac4 100644 --- a/.github/workflows/update-emil-git-tag.yml +++ b/.github/workflows/update-emil-git-tag.yml @@ -1,5 +1,5 @@ --- -name: Update amp-embedded-infra-lib Git Tag +name: Update embedded-pro/embedded-infra-lib Git Tag on: schedule: @@ -64,10 +64,10 @@ jobs: if: ${{ steps.pull_head.outputs.current_hash != steps.pull_head.outputs.latest_hash }} with: token: ${{ steps.token.outputs.token }} - commit-message: "chore: update amp-embedded-infra-lib hash to ${{ steps.pull_head.outputs.latest_hash }}" - title: "chore: update amp-embedded-infra-lib hash to ${{ steps.pull_head.outputs.latest_hash }}" + commit-message: "chore: update embedded-pro/embedded-infra-lib hash to ${{ steps.pull_head.outputs.latest_hash }}" + title: "chore: update embedded-pro/embedded-infra-lib hash to ${{ steps.pull_head.outputs.latest_hash }}" body: | - commits on amp-embedded-infra-lib: + commits on embedded-pro/embedded-infra-lib: ``` ${{ steps.pull_head.outputs.git_log }} diff --git a/CMakeLists.txt b/CMakeLists.txt index 5802872b..d9a9ec5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ if (HALST_STANDALONE) FetchContent_Declare( emil GIT_REPOSITORY https://github.com/embedded-pro/embedded-infra-lib.git - GIT_TAG 8a70bd61dfd129cb633c208273c6cbb371994859 # Unreleased + GIT_TAG 74165ff75d8734b9968bd5f2772e542968bfe2a0 # Unreleased ) FetchContent_MakeAvailable(emil) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 10c6e2dd..5bc1091b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Following these guidelines helps to communicate that you respect the time of the ## Contributing to development -amp-hal-st is a young open source project and we love to receive contributions from our community — you! There are many ways to contribute, from writing examples, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into EmbeddedInfraLib itself. +hal-st is a young open source project and we love to receive contributions from our community — you! There are many ways to contribute, from writing examples, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into EmbeddedInfraLib itself. ## Ground Rules diff --git a/README.md b/README.md index b943c8e8..b6c224c0 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,19 @@ -# amp-hal-st +# hal-st -[![Linting & Formatting](https://github.com/philips-software/amp-hal-st/actions/workflows/linting-formatting.yml/badge.svg)](https://github.com/philips-software/amp-hal-st/actions/workflows/linting-formatting.yml) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/philips-software/amp-hal-st/badge)](https://api.securityscorecards.dev/projects/github.com/philips-software/amp-hal-st) +[![Linting & Formatting](https://github.com/embedded-pro/hal-st/actions/workflows/linting-formatting.yml/badge.svg)](https://github.com/embedded-pro/hal-st/actions/workflows/linting-formatting.yml) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/embedded-pro/hal-st/badge)](https://api.securityscorecards.dev/projects/github.com/embedded-pro/hal-st) -**Description**: amp-hal-st is a HAL (Hardware Abstraction Layer) implementation for a range of [ST](https://st.com) ARM Cortex-based micro-controllers. amp-hal-st implements the interfaces defined as part of [EmbeddedInfraLib]. +**Description**: hal-st is a HAL (Hardware Abstraction Layer) implementation for a range of [ST](https://st.com) ARM Cortex-based micro-controllers. hal-st implements the interfaces defined as part of [EmbeddedInfraLib]. + +> **Note**: This repository is a copy of the original [amp-hal-st](https://github.com/philips-software/amp-hal-st) repository. ## Dependencies -amp-hal-st requires: +hal-st requires: - [EmbeddedInfraLib]. ## How to build the software -amp-hal-st cannot be built by-itself, it must be built as part of a larger project. This paragraph describes how to add amp-hal-st to a CMake build-system, using [EmbeddedInfraLib]. +hal-st cannot be built by-itself, it must be built as part of a larger project. This paragraph describes how to add hal-st to a CMake build-system, using [EmbeddedInfraLib]. > CMakeLists.txt @@ -24,13 +26,13 @@ include(FetchContent) FetchContent_Declare( emil - GIT_REPOSITORY https://github.com/philips-software/embeddedinfralib.git + GIT_REPOSITORY https://github.com/embedded-pro/embedded-infra-lib.git GIT_TAG main ) FetchContent_Declare( halst - GIT_REPOSITORY https://github.com/philips-software/amp-hal-st.git + GIT_REPOSITORY https://github.com/embedded-pro/hal-st.git GIT_TAG main ) @@ -50,7 +52,7 @@ halst_target_default_init(myprogram) ## How to test the software -Due to the nature of amp-hal-st: a HAL implementation, there are no included automated tests. Testing should be done in-context on the target hardware. +Due to the nature of hal-st: a HAL implementation, there are no included automated tests. Testing should be done in-context on the target hardware. ## Community @@ -66,6 +68,6 @@ Please refer to our [contributing](CONTRIBUTING.md) guide when you want to contr ## License -amp-hal-st is licensed under the [MIT](https://choosealicense.com/licenses/mit/) [license](LICENSE) except the files and/or directories named in the [notice](NOTICE) file. +hal-st is licensed under the [MIT](https://choosealicense.com/licenses/mit/) [license](LICENSE) except the files and/or directories named in the [notice](NOTICE) file. -[EmbeddedInfraLib]: https://github.com/philips-software/embeddedinfralib +[EmbeddedInfraLib]: https://github.com/embedded-pro/embedded-infra-lib diff --git a/integration_test/runner/Main.cpp b/integration_test/runner/Main.cpp index c717d00a..5d21ef19 100644 --- a/integration_test/runner/Main.cpp +++ b/integration_test/runner/Main.cpp @@ -4,7 +4,7 @@ int main(int argc, char** argv) { cucumber_cpp::library::Application application{}; - application.CliParser().add_option("--target", *application.ProgramContext().EmplaceAt("target"), "COM port or hostname (ws:///path or tcp://) of the amp-hal-st integration test board")->required(); + application.CliParser().add_option("--target", *application.ProgramContext().EmplaceAt("target"), "COM port or hostname (ws:///path or tcp://) of the hal-st integration test board")->required(); return application.Run(argc, argv); } diff --git a/release-please-config.json b/release-please-config.json index d0e84782..936c7c0f 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -4,7 +4,7 @@ "packages": { ".": { "release-type": "simple", - "package-name": "amp-hal-st", + "package-name": "hal-st", "extra-files": [ "CMakeLists.txt" ] From af2b85a1457ceb4515ba4a05d0017bd30a88c571 Mon Sep 17 00:00:00 2001 From: gfs Date: Thu, 9 Oct 2025 12:56:42 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- release-please-config.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 243449a7..7512f3ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: persist-credentials: false - uses: hendrikmuhs/ccache-action@bfa03e1de4d7f7c3e80ad9109feedd05c4f5a716 # v1.2.19 with: - key: ${{ github.job }}-ubuntu-latest + key: ${{ github.job }}-${{ matrix.os }} max-size: 2G save: ${{ github.ref == 'refs/heads/main' }} - uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8 diff --git a/release-please-config.json b/release-please-config.json index 936c7c0f..8adba2ad 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -5,9 +5,7 @@ ".": { "release-type": "simple", "package-name": "hal-st", - "extra-files": [ - "CMakeLists.txt" - ] + "extra-files": ["CMakeLists.txt"] } }, "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"