Skip to content

Commit

Permalink
update github actions CI script to also run tests on macos, along w…
Browse files Browse the repository at this point in the history
…ith `ubuntu` target

Signed-off-by: Anjan Roy <[email protected]>
  • Loading branch information
itzmeanjan committed Dec 3, 2023
1 parent afbceea commit e40d021
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Collects inspiration from https://github.com/itzmeanjan/dilithium/blob/15c2280f9448b3631a571ee2f33f8b0c695d4788/.github/workflows/test_ci.yml
name: Test SHA3 Hash and Extendable Output Functions using CI

on:
Expand All @@ -8,21 +9,22 @@ on:

jobs:
build:

runs-on: ubuntu-22.04
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

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: Get CMake
run: sudo apt-get install cmake
# From https://github.com/marketplace/actions/actions-setup-cmake
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: 'latest'
- 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 @@ -32,7 +34,5 @@ jobs:
popd
popd
popd
- name: Execute Tests
run: make
- name: Cleanup
run: make clean
- name: Execute Tests on ${{matrix.os}}
run: make -j

0 comments on commit e40d021

Please sign in to comment.