Update CHANGELOG #41
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: Libra CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build_and_test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up CCache | |
run: | | |
export CCACHE_BASEDIR="$PWD" | |
export CCACHE_DIR="$PWD/ccache" | |
export CCACHE_COMPILERCHECK=content | |
ccache --zero-stats || true | |
ccache --show-stats || true | |
git clean -ffdx | |
- name: Compile the code | |
run: | | |
echo "Compiling the code..." | |
echo $PATH | |
nvidia-smi | |
which nvcc | |
mkdir build | |
cd build | |
cmake -DApps_BUILD_TESTS=ON -DKokkos_CUDA_ARCH_NAME=Kokkos_ARCH_VOLTA70 .. | |
make | |
echo "Compilation complete." | |
- name: Show CCache stats | |
run: | | |
export CCACHE_DIR="$PWD/ccache" | |
ccache --show-stats || true | |
- name: Run unit tests | |
run: | | |
echo $PWD | |
base_path=$PWD | |
echo "Entering $PWD/apps/src/tests to run apps unit tests" | |
cd ${base_path}/apps/src/tests | |
${base_path}/build/Libra/apps/src/tests/LibRATests --gtest_output="xml:report.xml" | |
- name: Upload test report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test Report | |
path: ${{ github.workspace }}/build/Libra/apps/src/tests/report.xml |