Fix link directory error when using SOEM with cmake fetch_content #139
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
name: build | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- ubuntu-20.04 | |
- ubuntu-18.04 | |
- macos-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Configure | |
shell: bash | |
run: | | |
cmake -E make_directory $GITHUB_WORKSPACE/build | |
cmake -B $GITHUB_WORKSPACE/build -S $GITHUB_WORKSPACE \ | |
-DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
- name: Build | |
shell: bash | |
run: | | |
cmake --build $GITHUB_WORKSPACE/build -j4 --target install |