mpw-shell/.github/workflows/cmake-macos.yml

37 lines
869 B
YAML
Raw Permalink Normal View History

2022-09-25 17:19:26 +00:00
name: CMake MacOS
2020-12-02 04:05:43 +00:00
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
2022-09-25 17:19:26 +00:00
runs-on: macos-latest
2020-12-02 04:05:43 +00:00
steps:
- uses: actions/checkout@v2
- name: Brew
run: brew install ragel
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE
2020-12-02 04:08:34 +00:00
- name: Archive
uses: actions/upload-artifact@v2
with:
name: mpw fat
path: ${{runner.workspace}}/build/mpw-shell