-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable automatic build on push to master branch
- Loading branch information
ben
committed
Apr 3, 2024
1 parent
77f30ba
commit 68b7807
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Linux build check | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
checks: write | ||
|
||
jobs: | ||
build: | ||
|
||
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 | ||
- 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" | ||
- name: Publish Results | ||
uses: EnricoMi/publish-unit-test-result-action@v1 | ||
with: | ||
check_name: Unit test results | ||
files: "**/test_detail.xml" |