Replication commit. 03/06 #172
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CI Workflow for Golden Gate | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-linux-macos: | |
name: GG-Build ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE, so that the job can access it | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# Needed for Conda | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: gg | |
environment-file: environment.yml | |
auto-activate-base: false | |
# Runs a single command using the runners shell (so that conda can be properyl activated) | |
- shell: bash -l {0} | |
name: Build and test native targets | |
run: | | |
conda info | |
conda list | |
inv native.build | |
GG_LOG_CONFIG=plist:.level=WARNING inv native.test | |
# macOS-specific step | |
- shell: bash -l {0} | |
name: Build macOS XCode project | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
inv apple.macos.xp.gen | |
xcodebuild -project xp/build/cmake/xcode-macOS/golden-gate-macos.xcodeproj |