Update documentation #81
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: tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
cmake: | |
name: Build and test with CMake | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install the C++ and CMake packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes g++ cmake | |
- name: Configure the PhQ library | |
run: | | |
mkdir --parents build | |
cd build | |
cmake .. -D PHYSICAL_QUANTITIES_PHQ_TEST=ON | |
- name: Build the PhQ tests | |
run: | | |
cd build | |
make --jobs=16 | |
- name: Run the PhQ tests | |
run: | | |
cd build | |
make test | |
- name: Install the PhQ library | |
run: | | |
cd build | |
sudo make install | |
bazel: | |
name: Build and test with Bazel | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install the C++ and Curl packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes g++ curl | |
- name: Install the Bazel package | |
run: | | |
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - | |
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | |
sudo apt-get update | |
sudo apt-get install --yes bazel | |
- name: Build the PhQ tests | |
run: bazel build //:all | |
- name: Run the PhQ tests | |
run: bazel test //:all |