blob: 2d55950a1eeae0e6cddf772d0c3e625d915b78f2 [file] [log] [blame]
name: build
on: [push]
jobs:
all:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
# os: [macos-latest, ubuntu-latest]
steps:
- name: checkout
uses: actions/checkout@v2
- name: install dependencies (Linux)
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install libzstd-dev
- name: install dependencies (Windows)
if: ${{ runner.os == 'Windows' }}
uses: lukka/run-vcpkg@v6
id: runvcpkg
with:
vcpkgGitCommitId: 0bf3923f9fab4001c00f0f429682a0853b5749e0
vcpkgTriplet: x64-windows
vcpkgArguments: zlib
- name: prepare build directory
run: |
cmake -E make_directory ${{runner.workspace}}/build
- name: configure
working-directory: ${{runner.workspace}}/build
run: |
cmake ${{github.workspace}}
- name: build
working-directory: ${{runner.workspace}}/build
run: |
cmake --build .
- name: test
working-directory: ${{runner.workspace}}/build
run: |
ctest -v