# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Mac
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@v2
- name: Build iwasm [default]
run: |
cd product-mini/platforms/darwin
mkdir build && cd build
cmake ..
make
cd .. && rm -rf build
- name: Build iwasm [Classic interp]
cmake .. -DWAMR_BUILD_FAST_INTERP=0
- name: Build iwasm [Multi module]
cmake .. -DWAMR_BUILD_MULTI_MODULE=1
- name: Build iwasm [lib-pthread]
cmake .. -DWAMR_BUILD_LIB_PTHREAD=1
- name: Build iwasm [aot only]
cmake .. -DWAMR_BUILD_AOT=1 -DWAMR_BUILD_INTERP=0
- name: Build iwasm [interp only]
cmake .. -DWAMR_BUILD_AOT=0
- name: Build iwasm [memory profiling]
cmake .. -DWAMR_BUILD_MEMORY_PROFILING=1
- name: Build Sample [wasm-c-api]
cd samples/wasm-c-api
./hello
./global
./callback