-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update github actions CI script to also run tests on
macos
, along w…
…ith `ubuntu` target Signed-off-by: Anjan Roy <[email protected]>
- Loading branch information
1 parent
afbceea
commit e40d021
Showing
1 changed file
with
13 additions
and
13 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 |
---|---|---|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 |