Skip to content

Commit

Permalink
trying this again
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 12, 2024
1 parent 3d2c26a commit d68dc6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 51 deletions.
56 changes: 5 additions & 51 deletions .github/workflows/bootloader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,55 +31,9 @@ on:
- "bootloader@*"
workflow_dispatch:

env:
ci: 1
DEFAULT_DIRECTORY: ot3-firmware
TARGET: bootloader

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

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
run-non-executable-workflow:
uses: ./.github/workflows/non-executable-workflow.yaml
with:
target: bootloader
secrets: inherit
9 changes: 9 additions & 0 deletions .github/workflows/non-executable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Workflow for Non-executable Targets

on:
workflow_call:
inputs:
target:
description: Non-executable target
required: true

env:
ci: 1
DEFAULT_DIRECTORY: ot3-firmware
TARGET: ${{ inputs.target }}

defaults:
run:
Expand Down

0 comments on commit d68dc6d

Please sign in to comment.