Skip to content

Add Host MacOS support #759

Add Host MacOS support

Add Host MacOS support #759

Workflow file for this run

name: Continuous Integration (CI)
on:
push:
pull_request:
branches: [ develop ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-latest]
variant: [host]
include:
- variant: host
arch: Host
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ toJson(matrix) }}
cancel-in-progress: true
runs-on: ${{ matrix.os }}
env:
SMING_ARCH: ${{ matrix.arch }}
SMING_SOC: ${{ matrix.variant }}
ENABLE_MALLOC_COUNT: 0
EXCLUDE_COMPONENTS: Libraries/rbpf Libraries/Graphics
steps:
- name: Fix autocrlf setting
run: |
git config --global --add core.autocrlf input
- name: Checkout code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Configure environment
shell: pwsh
run: |
"CI_BUILD_DIR=" + (Resolve-Path ".").path >> $env:GITHUB_ENV
"SMING_HOME=" + (Resolve-Path "Sming").path >> $env:GITHUB_ENV
- name: Install build tools for MacOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
Tools/ci/install.sh
- name: Build and test for ${{matrix.variant}} on MacOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
source $SMING_HOME/../Tools/export.sh
Tools/ci/build.sh