Add missing header and license #519
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: | |
branches: | |
- main | |
jobs: | |
all: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] #, ubuntu-latest (libzip too old), windows-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install dependencies (macOS) | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
brew update | |
brew reinstall libzip | |
brew install libarchive | |
- name: install dependencies (Linux) | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo apt-get -qq update; | |
sudo apt-get install -y libxml2-dev libsqlite3-0 libzip-dev zipcmp | |
- name: prepare build directory and install nihtest | |
run: | | |
cmake -E make_directory ${{runner.workspace}}/build | |
pip install nihtest | |
- name: configure (Unix) | |
if: ${{ runner.os == 'Linux' }} | |
working-directory: ${{runner.workspace}}/build | |
run: | | |
cmake ${{github.workspace}} | |
- name: configure (macOS) | |
if: ${{ runner.os == 'macOS' }} | |
working-directory: ${{runner.workspace}}/build | |
run: | | |
cmake -DPYTHONBIN=/Library/Frameworks/Python.framework/Versions/Current/bin/python ${{github.workspace}} | |
- name: build | |
working-directory: ${{runner.workspace}}/build | |
run: | | |
cmake --build . --config Release | |
- name: test | |
working-directory: ${{runner.workspace}}/build | |
run: | | |
ctest --output-on-failure -V -C Release |