FINISHED EVERYTHING POOR PEASANTS #13
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 & test | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-13 ] | |
name: Build & test on ${{ matrix.os }}. | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Ubuntu dependencies | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential cmake libstemmer-dev libhyperscan-dev | |
- name: Install macOS dependencies | |
if: ${{ matrix.os == 'macos-13' }} | |
run: | | |
brew install cmake snowball hyperscan | |
- name: Build project with CMake | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_STEMMER:BOOL=ON -DFIX_MSMARCO_LATIN1:BOOL=ON -DTEXT_FULL_LATIN1_CASE:BOOL=ON .. | |
make -j4 | |
- name: Run Google Test | |
run: | | |
cd build | |
./tests/Google_Tests_run |