Skip to content

Commit

Permalink
move ci win/mac to build_cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed May 10, 2024
1 parent f732af9 commit b1238f6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,18 @@ jobs:
toolchain: ${{ matrix.toolchain }}
toolchain_url: ${{ fromJSON(needs.set-matrix.outputs.json)[matrix.toolchain].toolchain_url }}
build-family: ${{ toJSON(fromJSON(needs.set-matrix.outputs.json)[matrix.toolchain].family) }}

# ---------------------------------------
# Build Make on Windows/MacOS
# ---------------------------------------
make-os:
uses: ./.github/workflows/build_family.yml
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
with:
os: ${{ matrix.os }}
build-system: 'make'
toolchain: 'arm-gcc'
build-family: '-b stm32f411disco'
8 changes: 6 additions & 2 deletions .github/workflows/build_family.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ on:
required: true
type: string
toolchain_url:
required: true
required: false
type: string
build-family:
required: true
type: string
os:
required: true
type: string
default: 'ubuntu-latest'

jobs:
family:
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build_win_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
# Build ARM family
# ---------------------------------------
build-arm:
if: false
strategy:
fail-fast: false
matrix:
Expand All @@ -49,7 +50,7 @@ jobs:

- name: Get Dependencies
run: |
python3 tools/get_deps.py stm32f4
python3 tools/get_deps.py stm32f2
- name: Build
run: python3 tools/build.py -s make stm32f2

0 comments on commit b1238f6

Please sign in to comment.