-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from tudasc/devel
Extend CI
- Loading branch information
Showing
3 changed files
with
110 additions
and
19 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
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: TypeART-CI-ext | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build-and-run-testbench: | ||
runs-on: ubuntu-18.04 | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') || !contains(github.event.head_commit.message, '[ci ext skip]')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Checkout test-bench | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: tudasc/typeart-bench | ||
ssh-key: ${{ secrets.AUTH_SSH_CI_EXT }} | ||
path: test-bench | ||
|
||
- name: Setup LLVM repository | ||
run: | | ||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add - | ||
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' -y | ||
sudo apt-get update -q | ||
- name: Install LLVM | ||
run: sudo apt-get install libllvm10 llvm-10 llvm-10-dev | ||
|
||
- name: Install Clang | ||
run: sudo apt-get install clang-10 | ||
|
||
- name: Install OpenMPI | ||
run: sudo apt-get install libopenmpi-dev openmpi-bin | ||
|
||
- name: Setup env | ||
run: | | ||
sudo ln -f -s /usr/bin/clang-10 /usr/bin/clang | ||
sudo ln -f -s /usr/bin/clang++-10 /usr/bin/clang++ | ||
sudo ln -f -s /usr/bin/opt-10 /usr/bin/opt | ||
sudo ln -f -s /usr/bin/llc-10 /usr/bin/llc | ||
echo "::set-env name=CC::clang-10" | ||
echo "::set-env name=CXX::clang++-10" | ||
- name: Build & install TypeART | ||
run: | | ||
cmake -B build -DCMAKE_BUILD_TYPE=Release -DMPI_INTERCEPT_LIB=ON -DSHOW_STATS=ON | ||
cmake --build build --parallel --target install | ||
echo "::set-env name=TYPEART_PATH::${GITHUB_WORKSPACE}/install/typeart" | ||
- name: Setup tests | ||
working-directory: test-bench | ||
run: cmake -B build -DLOG_PATH=${GITHUB_WORKSPACE}/test-bench/artifact | ||
|
||
- name: Run lulesh | ||
working-directory: test-bench/build | ||
run: ctest -V -R lulesh -O lulesh2.0_build.log | ||
|
||
- name: Run 104.milc | ||
working-directory: test-bench/build | ||
run: ctest -V -R 104.milc -O 104.milc_build.log | ||
|
||
- name: Run 122.tachyon | ||
working-directory: test-bench/build | ||
run: ctest -V -R 122.tachyon -O 122.tachyon_build.log | ||
|
||
- name: Run amg2013 | ||
working-directory: test-bench/build | ||
run: ctest -V -R amg2013 -O amg2013_build.log | ||
|
||
- name: Prepare test-bench artifact | ||
working-directory: test-bench | ||
run: | | ||
mkdir -p artifact | ||
mv build/*_build.log artifact | ||
- name: Upload test-bench artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: typeart-bench-archive | ||
path: test-bench/artifact | ||
|
||
|
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