-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes use of Github Actions for building on Windows with Visual Studio 2019. We already use this for updating the doxygen documentation and it looks like the next reasonable step. Especially because it allows for 20 parallel builds for open source projects whereas Travis only had 5.
- Loading branch information
1 parent
080278f
commit eac21dc
Showing
11 changed files
with
137 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Continuous Integration | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
ALPAKA_CI: GITHUB | ||
TBB_ROOT: tbb | ||
BOOST_ROOT: boost | ||
ALPAKA_CI_BOOST_LIB_DIR: boost_libs | ||
ALPAKA_CI_CLANG_DIR: llvm | ||
ALPAKA_CI_CMAKE_DIR: CMake | ||
ALPAKA_CI_CUDA_DIR: CUDA | ||
ALPAKA_CI_HIP_ROOT_DIR: hip | ||
ALPAKA_CI_SANITIZERS: | ||
ALPAKA_CI_ANALYSIS: OFF | ||
ALPAKA_ACC_GPU_CUDA_ENABLE: OFF | ||
ALPAKA_ACC_GPU_HIP_ENABLE: OFF | ||
|
||
jobs: | ||
windows_cl-2019_release: | ||
name: Windows cl-2019 Release | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: build + test | ||
shell: bash | ||
run: cd ${GITHUB_WORKSPACE} && ./script/travis/script.sh | ||
env: {TRAVIS_OS_NAME: windows, CXX: cl.exe, CC: cl.exe, ALPAKA_CI_CL_VER: 2019, CMAKE_BUILD_TYPE: Release, ALPAKA_CI_BOOST_BRANCH: boost-1.72.0, ALPAKA_CI_CMAKE_VER: 3.15.7, OMP_NUM_THREADS: 4, ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE: OFF, ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE: OFF, ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLE: OFF} | ||
|
||
windows_cl-2019_debug: | ||
name: Windows cl-2019 Debug | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: build + test | ||
shell: bash | ||
run: cd ${GITHUB_WORKSPACE} && ./script/travis/script.sh | ||
env: {TRAVIS_OS_NAME: windows, CXX: cl.exe, CC: cl.exe, ALPAKA_CI_CL_VER: 2019, CMAKE_BUILD_TYPE: Debug, ALPAKA_CI_BOOST_BRANCH: boost-1.72.0, ALPAKA_CI_CMAKE_VER: 3.15.7, OMP_NUM_THREADS: 4, ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE: OFF, ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE: OFF, ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLE: OFF} |
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
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
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,50 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright 2017-2019 Benjamin Worpitz | ||
# | ||
# This file is part of Alpaka. | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
|
||
source ./script/travis/set.sh | ||
|
||
#------------------------------------------------------------------------------- | ||
if [ "$ALPAKA_CI" = "TRAVIS" ] | ||
then | ||
# Print the travis environment variables: http://docs.travis-ci.com/user/ci-environment/ | ||
echo TRAVIS_BRANCH: "${TRAVIS_BRANCH}" | ||
echo TRAVIS_BUILD_DIR: "${TRAVIS_BUILD_DIR}" | ||
echo TRAVIS_BUILD_ID: "${TRAVIS_BUILD_ID}" | ||
echo TRAVIS_BUILD_NUMBER: "${TRAVIS_BUILD_NUMBER}" | ||
echo TRAVIS_COMMIT: "${TRAVIS_COMMIT}" | ||
echo TRAVIS_COMMIT_RANGE: "${TRAVIS_COMMIT_RANGE}" | ||
echo TRAVIS_JOB_ID: "${TRAVIS_JOB_ID}" | ||
echo TRAVIS_JOB_NUMBER: "${TRAVIS_JOB_NUMBER}" | ||
echo TRAVIS_PULL_REQUEST: "${TRAVIS_PULL_REQUEST}" | ||
echo TRAVIS_SECURE_ENV_VARS: "${TRAVIS_SECURE_ENV_VARS}" | ||
echo TRAVIS_REPO_SLUG: "${TRAVIS_REPO_SLUG}" | ||
echo TRAVIS_OS_NAME: "${TRAVIS_OS_NAME}" | ||
echo TRAVIS_TAG: "${TRAVIS_TAG}" | ||
elif [ "$ALPAKA_CI" = "GITHUB" ] | ||
then | ||
echo GITHUB_WORKSPACE: "${GITHUB_WORKSPACE}" | ||
fi | ||
|
||
if [ "$TRAVIS_OS_NAME" = "linux" ] | ||
then | ||
# Show all running services | ||
sudo service --status-all | ||
|
||
# Stop some unnecessary services to save memory | ||
sudo /etc/init.d/mysql stop | ||
sudo /etc/init.d/postgresql stop | ||
sudo /etc/init.d/redis-server stop | ||
|
||
# Show memory stats | ||
sudo smem | ||
sudo free -m -t | ||
fi |
This file was deleted.
Oops, something went wrong.
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
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