AM-71 Upgrade ubuntu version for docker container #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: Linux & Windows & Mac builds check on master branch push event | |
on: | |
push: | |
branches: [ "master" ] | |
permissions: | |
issues: write | |
pull-requests: write | |
checks: write | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install packages | |
run: sudo apt -y install git g++ cmake libsqlite3-dev gcovr libjpeg-dev valgrind lynx | |
- name: Clone aquamarine repo | |
run: git clone https://github.com/MaksymT17/aquamarine.git | |
- name: Build artifacts with Cmake | |
run: | | |
cd aquamarine && | |
./build.sh | |
- name: Run unit test | |
run: | | |
cd aquamarine/unit_tests && | |
./prepare_build.sh && | |
cd build && | |
make -j8 && | |
./aquamarine_ut --gtest_output="xml" && | |
cmake --build . --config Debug --target coverage_aquamarine_ut -- -j 4 && | |
lynx -dump ./coverage_aquamarine_ut/index.html | |
- name: Publish Results | |
uses: EnricoMi/publish-unit-test-result-action@v1 | |
with: | |
check_name: Unit test results | |
files: "**/test_detail.xml" | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clone aquamarine repo | |
run: git clone https://github.com/MaksymT17/aquamarine.git | |
shell: bash | |
- name: Build artifacts with Cmake | |
run: | | |
cd aquamarine && | |
echo "removing existing build folder..." | |
rm -rf build/ && | |
mkdir build && | |
echo "preparing new build with cmake..." && | |
cd build/ && | |
cmake .. && | |
cmake --build . && | |
echo "Build complete!" | |
shell: bash | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
brew install git gcc cmake sqlite3 gcovr jpeg | |
- name: Clone aquamarine repo | |
run: git clone https://github.com/MaksymT17/aquamarine.git | |
- name: Build artifacts with Cmake | |
run: | | |
cd aquamarine && | |
./build.sh | |
- name: Run unit test | |
run: | | |
cd aquamarine/unit_tests && | |
./prepare_build.sh && | |
cd build && | |
make -j8 && | |
./aquamarine_ut |