Skip to content

Commit

Permalink
update github actions CI script
Browse files Browse the repository at this point in the history
- Now runs on both Ubuntu-x86_64 and Darwin-aarch64 targets
- Running primary tests along with newly added ASAN and UBSAN

Signed-off-by: Anjan Roy <[email protected]>
  • Loading branch information
itzmeanjan committed Feb 2, 2024
1 parent 984406d commit a38a551
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,19 @@ on:

jobs:
build:

runs-on: ubuntu-22.04
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, # x86_64
macos-14 # Apple Silicon
]

steps:
- uses: actions/checkout@v3
- name: Setup compiler
run: |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
- name: Fetch dependency
run: git submodule update --init
- name: Get CMake
run: sudo apt-get install cmake
- uses: actions/checkout@v4
- name: Setup Google-Test
run: |
pushd ~
git clone https://github.com/google/googletest.git -b v1.13.0
git clone https://github.com/google/googletest.git -b v1.14.0
pushd googletest
mkdir build
pushd build
Expand All @@ -34,7 +30,9 @@ jobs:
popd
popd
popd
- name: Execute tests
run: make -j $(nproc --all)
- name: Cleanup
run: make clean
- name: Execute Tests on ${{matrix.os}}
run: make -j
- name: Execute Tests with AddressSanitizer on ${{matrix.os}}
run: make asan_test -j
- name: Execute Tests with UndefinedBehaviourSanitizer on ${{matrix.os}}
run: make ubsan_test -j

0 comments on commit a38a551

Please sign in to comment.