Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/app_builder2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ on:
dir: # Directory where the conan package exists
type: string
default: "."
library_dir:
type: string
default: ""
description: "Specify the library directory to create a library package using the platform and compiler profiles. A version will not be supplied. The package should default to either 'latest' OR something that the application can understand."

jobs:
build:
Expand Down Expand Up @@ -65,5 +69,9 @@ jobs:
- name: Setup libhal
run: conan hal setup

- name: 📦 Create Package "${{ inputs.library_dir }}" @ version=latest
if: ${{ inputs.library_dir != '' }}
run: conan create ${{ inputs.library_dir }} -pr ${{ inputs.compiler_profile }} -pr ${{ inputs.platform_profile }} --version=latest

- name: 🏗️ Build Application for ${{ inputs.profile }}
run: conan build ${{ inputs.dir }} -pr ${{ inputs.compiler_profile }} -pr ${{ inputs.platform_profile }}
9 changes: 9 additions & 0 deletions .github/workflows/self_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ jobs:
platform_profile: hal/mcu/lpc4078
secrets: inherit

libhal-expander-build-latest:
uses: ./.github/workflows/app_builder2.yml
with:
repo: libhal/libhal-expander
dir: demos
library_dir: .
compiler_profile: hal/tc/arm-gcc
platform_profile: hal/mcu/lpc4078

libhal-actuator-demos-lpc4078:
uses: ./.github/workflows/app_builder2.yml
with:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ Builds applications/demos for embedded platforms using the new conan-config2 sys
- `platform_profile` (string, **required**): Platform profile path (e.g., "hal/mcu/lpc4078")
- `config2_version` (string): Branch/tag of conan-config2 to use. Default: "main"
- `dir` (string): Directory containing the application. Default: "."
- `library_dir` (string): Directory containing the directory of a library
needed for the application to build. The library's version will be hard set
to `latest`. If this input is left empty, then the library build step is
skipped. Default: "".

**Usage:**

Expand Down