Skip to content

Commit

Permalink
ci: Added POSIX examples build.
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Ricciardi <[email protected]>
  • Loading branch information
RICCIARDI-Adrien committed Sep 5, 2023
1 parent 3f2cafc commit 590cbbf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,23 @@ jobs:
- name: Build the code
run: ./build.py
working-directory: examples/avr/arduinoMega2560/${{ matrix.example_name }}

posix-examples:
name: Build POSIX examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
example_name: [can_demo, events, ioc, isr, messages, one_task, periodic, trace_test]
steps:
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=posix/linux --templates=../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/posix/${{ matrix.example_name }}
- name: Build the code
run: ./build.py
working-directory: examples/posix/${{ matrix.example_name }}

0 comments on commit 590cbbf

Please sign in to comment.