test job #4
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: Test / Linux / x86 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository Job | |
uses: actions/checkout@v2 | |
- name: Install Dependencies Job | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcovr | |
sudo chmod +x tools/unit_test.sh | |
git submodule update --init --recursive | |
- name: Configure and Build Job | |
run: | | |
cmake -S . -B build -DLIBMEM_BUILD_TESTS=ON | |
cmake --build build | |
- name: Run Unit Tests Job | |
run: | | |
sudo tools/unit_test.sh | |
- name: Archive Artifacts Job | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libmem-artifacts | |
path: | | |
build/ | |