Skip to content

Commit

Permalink
ci: build and test
Browse files Browse the repository at this point in the history
Add Github workflow based on .travis.yml
  • Loading branch information
HRio committed Jan 16, 2024
1 parent c5b7bcf commit 7303de7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build-and-test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
name: build-and-test
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: Install depends
run: sudo apt-get -y install bash cmake default-jre-headless lcov libsodium-dev libcmocka-dev

- name: Build and test
run: |
cmake -DSANITIZE_ADDRESS=On -DSANITIZE_UNDEFINED=On -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=On -DBUILD_BENCHMARK=On -DBUILD_EXAMPLES=On -DENABLE_COVERAGE=On .
make -j$(nproc)
ctest
sh test_echo_with_java.sh
gcov src/CMakeFiles/salt.dir/salt.c.gcno src/CMakeFiles/salt.dir/salti_handshake.c.gcno src/CMakeFiles/salt.dir/salti_util.c.gcno

0 comments on commit 7303de7

Please sign in to comment.