-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a00ad12
commit 713f668
Showing
4 changed files
with
196 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Workflow for Executable Targets | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
description: Executable target | ||
required: true | ||
type: string | ||
sub-targets: | ||
description: Sub-targets | ||
required: false | ||
type: string | ||
|
||
|
||
env: | ||
ci: 1 | ||
DEFAULT_DIRECTORY: ot3-firmware | ||
TARGET: ${{ inputs.target }} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ot3-firmware | ||
|
||
jobs: | ||
cross-compile-check: | ||
name: "Cross-Compile/Check" | ||
runs-on: "ubuntu-20.04" | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout github actions directory | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
.github/actions | ||
sparse-checkout-cone-mode: false | ||
path: actions | ||
|
||
- name: Setup main | ||
uses: ./actions/.github/actions/main-setup | ||
with: | ||
cache-version: ${{ secrets.CACHE_VERSION }} | ||
|
||
- name: Cross-Compile/Check | ||
uses: ./actions/.github/actions/cross-compile-check | ||
|
||
# cross-compile-build: | ||
# name: "Cross-Compile/Build" | ||
# needs: cross-compile-check | ||
# strategy: | ||
# matrix: | ||
# build-target: ${{ fromJSON(inputs.sub-targets) }} | ||
# steps: | ||
# uses: ./actions/.github/actions/cross-compile-build | ||
# sub-target: ${{ matrix.build-target || ""}} | ||
|
||
|
||
host-compile-test: | ||
name: "Host-Compile/Test" | ||
runs-on: "ubuntu-20.04" | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout github actions directory | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: | | ||
.github/actions | ||
sparse-checkout-cone-mode: false | ||
path: actions | ||
|
||
- name: Setup main | ||
uses: ./actions/.github/actions/main-setup | ||
with: | ||
cache-version: ${{ secrets.CACHE_VERSION }} | ||
|
||
- name: Host-Compile/Test | ||
uses: ./actions/.github/actions/host-compile-test | ||
|
||
build-simulator: | ||
name: "Build Simulator" | ||
needs: host-build-test | ||
strategy: | ||
matrix: | ||
build-target: ${{ fromJSON(inputs.sub-targets) }} | ||
steps: | ||
uses: ./actions/.github/actions/cross-compile-build | ||
sub-target: ${{ matrix.build-target || ""}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters