2021-02-08 23:53:06 +03:00
|
|
|
name: macOS
|
2020-11-16 03:58:37 +03:00
|
|
|
on:
|
2023-05-07 00:51:18 +03:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 0'
|
2020-11-16 03:58:37 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
name: Build on Mac OS
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
compiler: [ gcc, clang ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.1.0
|
|
|
|
- name: build
|
|
|
|
env:
|
|
|
|
CC: ${{ matrix.compiler }}
|
|
|
|
run: |
|
|
|
|
mkdir build-debug && cd build-debug
|
|
|
|
cmake .. -DSANITIZER=address
|
|
|
|
make -j
|
|
|
|
make check
|
|
|
|
rm -rf *
|
|
|
|
cmake .. -DSANITIZER=undefined
|
|
|
|
make -j
|
|
|
|
make check
|