cleaned up Dockerfile #75
Workflow file for this run
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: CI build | |
on: push | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-18.04 | |
- os: ubuntu-20.04 | |
- os: macos-10.15 | |
- os: macos-11 | |
- os: windows-2019 | |
- os: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: git fetch --prune --unshallow | |
- name: Install Linux packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install nasm | |
if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' | |
- name: Install Mac packages | |
run: | | |
brew install nasm | |
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11' | |
- name: Install Windows packages | |
run: | | |
choco install nasm | |
if: matrix.os == 'windows-2019' || matrix.os == 'windows-2022' | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake -DENABLE_TEST=1 .. | |
cmake --build . | |
- name: Unit test | |
run: | | |
cd build/source/lib/test | |
ctest | |