mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-15 15:57:13 +00:00
Github is deprecating the MacOS-10.15 environment as MacOS-12 is coming online (currently beta), so this runner must be updated to MacOS-11 Ubuntu 22.04 LTS is now available so add that to the builds. Ubuntu 18.04 LTS should be supported until April 2023.
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-11, ubuntu-22.04, ubuntu-18.04]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install X11 dependencies on MacOS
|
|
if: ${{ runner.os == 'macOS'}}
|
|
run: brew install --cask xquartz
|
|
- name: Build
|
|
working-directory: bin
|
|
run: ./makeright x
|
|
|
|
#
|
|
# Commented out because the RPi is not online at this time (6 July 2021)
|
|
#
|
|
# build-pi:
|
|
# runs-on: [self-hosted, linux, ARM]
|
|
# if: ${{ github.repository == 'Interlisp/maiko' }}
|
|
# steps:
|
|
# - uses: actions/checkout@v2
|
|
# - name: Build
|
|
# working-directory: bin
|
|
# run: ./makeright x
|
|
|
|
build-cmake:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-11, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
|
|
env:
|
|
BUILD_TYPE: Release
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install X11 dependencies on MacOS
|
|
if: ${{ runner.os == 'macOS'}}
|
|
run: brew install --cask xquartz
|
|
- name: Create Build Environment
|
|
run: cmake -E make_directory ${{github.workspace}}/build
|
|
- name: Configure CMake
|
|
shell: bash
|
|
working-directory: ${{github.workspace}}/build
|
|
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
|
- name: Build
|
|
working-directory: ${{github.workspace}}/build
|
|
shell: bash
|
|
run: cmake --build . --config $BUILD_TYPE
|