praise the lord #1
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
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 || ""}} |