mpw/.github/workflows/cmake-fat.yml

39 lines
880 B
YAML
Raw Normal View History

2020-11-26 20:36:09 +00:00
name: CMake fat
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
2022-09-23 22:11:20 +00:00
runs-on: macos-latest
2020-11-26 20:36:09 +00:00
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Brew
run: brew install ragel lemon
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
2020-11-26 20:42:45 +00:00
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
2020-11-26 20:36:09 +00:00
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
2020-11-26 20:58:17 +00:00
run: make mpw
2020-11-26 20:36:09 +00:00
- name: Archive
uses: actions/upload-artifact@v2
with:
name: mpw fat
path: ${{runner.workspace}}/build/bin/mpw