mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Small quality-of-life improvements to workflows using new concurrency control features: https://docs.github.com/en/actions/using-jobs/using-concurrency At time of this commit, macOS runners are oversubscribed. This may help.
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: macos
|
|
on: [push, pull_request]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- macos
|
|
generator:
|
|
- Ninja
|
|
configuration:
|
|
- Release
|
|
runs-on: [self-hosted, macOS]
|
|
env:
|
|
# The `build` action requires these variables.
|
|
build_dir: .build
|
|
NUM_PROCESSORS: 12
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
- name: install Ninja
|
|
if: matrix.generator == 'Ninja'
|
|
run: brew install ninja
|
|
- name: check environment
|
|
run: |
|
|
echo ${PATH} | tr ':' '\n'
|
|
python --version
|
|
conan --version
|
|
cmake --version
|
|
env | sort
|
|
- name: build
|
|
uses: ./.github/actions/build
|
|
with:
|
|
generator: ${{ matrix.generator }}
|
|
configuration: ${{ matrix.configuration }}
|
|
- name: test
|
|
run: |
|
|
${build_dir}/rippled --unittest
|