2021-04-18 13:34:22 -04:00
|
|
|
name: Mac make CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2021-04-18 14:24:05 -04:00
|
|
|
build-and-test:
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: /usr/bin/arch -arch ${{ matrix.arch }} /bin/bash -l {0}
|
|
|
|
|
2021-04-18 13:34:22 -04:00
|
|
|
runs-on: self-hosted
|
2021-04-18 14:24:05 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
|
|
|
|
NSUnbufferedIO: YES
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
arch: [arm64e, x86_64]
|
2021-04-18 13:34:22 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: configure
|
2021-04-18 14:45:12 -04:00
|
|
|
run: mkdir -p $PWD/localbin_${{ matrix.arch }}; ./configure --prefix=$PWD/localbin_${{ matrix.arch }}
|
2021-04-18 13:34:22 -04:00
|
|
|
- name: make
|
2021-04-18 14:24:05 -04:00
|
|
|
run: make -j4
|
2021-04-18 15:14:19 -04:00
|
|
|
- name: make install
|
|
|
|
run: make install
|
2021-04-18 13:34:22 -04:00
|
|
|
- name: make tests
|
2021-04-18 14:24:05 -04:00
|
|
|
run: make -j4 -C tests
|
|
|
|
- name: run tests
|
2021-04-18 15:14:19 -04:00
|
|
|
run: pushd tests;./test;popd
|