Use epi and cxx20 #81
Workflow file for this run
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
name: build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
static-lib-clang: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: get updated submodules | |
run: git submodule update --init --recursive | |
- name: build and compile the static library. | |
run: make -f staticlib CXX=clang++ | |
- name: run the tests for the static library. | |
run: make -f staticlib static_test CXX=clang++ | |
- name: clean test executables | |
run: make clean | |
- name: install the static library. | |
run: sudo make -f staticlib install CXX=clang++ | |
- name: compile the static sample program for the library. | |
run: clang++ -std=c++20 static-build.cpp -o static-build.out -lchacha20 -fsanitize=address | |
- name: run the sample program for the library. | |
run: ./static-build.out | |
- name: uninstall the static library. | |
run: sudo make -f staticlib uninstall | |
- name: cleanup | |
run: make -f staticlib cleanup | |
static-lib-gcc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: get updated submodules | |
run: git submodule update --init --recursive | |
- name: build and compile the static library. | |
run: make -f staticlib | |
- name: run the tests for the static library. | |
run: make -f staticlib static_test | |
- name: clean test executables | |
run: make clean | |
- name: install the static library. | |
run: sudo make -f staticlib install | |
- name: compile the static sample program for the library. | |
run: g++ -std=c++20 static-build.cpp -o static-build.out -lchacha20 -fsanitize=address | |
- name: run the sample program for the library. | |
run: ./static-build.out | |
- name: uninstall the static library. | |
run: sudo make -f staticlib uninstall | |
- name: cleanup | |
run: make -f staticlib cleanup |