Merge pull request #17 from anira-project/refine-bela-support #62
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: build_test | |
on: | |
workflow_call: | |
workflow_dispatch: # lets you run a build from github.com | |
# Runs the workflow on all push events | |
push: | |
pull_request: | |
branches: | |
- main | |
- develop | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
# When pushing new commits, cancel any workflows with the same name on that branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_test: | |
name: ${{ matrix.name }} | |
strategy: | |
fail-fast: false # show all errors for each platform (vs. cancel jobs on error) | |
matrix: | |
include: | |
- name: Linux-x86_64 | |
os: ubuntu-latest | |
- name: macOS-x86_64 | |
os: macOS-latest | |
- name: macOS-arm64 | |
os: macOS-latest | |
- name: Windows-x86_64 | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: get repo and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: setup | |
uses: ./.github/actions/setup | |
- name: build | |
uses: ./.github/actions/build | |
with: | |
BUILD_TYPE: Release | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
CMAKE_BUILD_ARGS: "-DBUILD_SHARED_LIBS=ON -DANIRA_WITH_TESTS=ON" | |
- name: test | |
uses: ./.github/actions/test |