Enter ./cpp first before CI tasks
This commit is contained in:
parent
e2f07c056d
commit
67a7447924
57
.github/workflows/main.yaml
vendored
57
.github/workflows/main.yaml
vendored
@ -3,7 +3,7 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
"test_compile_cpp":
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -15,84 +15,87 @@ jobs:
|
|||||||
path: compilers
|
path: compilers
|
||||||
key: ${{ runner.os }}-${{ hashFiles('./cpp/ci-prepare-bionic.sh') }}
|
key: ${{ runner.os }}-${{ hashFiles('./cpp/ci-prepare-bionic.sh') }}
|
||||||
|
|
||||||
|
- name: Prepare compilers
|
||||||
|
run: cd ./cpp
|
||||||
|
|
||||||
- name: Prepare compilers
|
- name: Prepare compilers
|
||||||
if: steps.prepare-compilers.outputs.cache-hit != 'true'
|
if: steps.prepare-compilers.outputs.cache-hit != 'true'
|
||||||
run: source ./cpp/ci-prepare-bionic.sh ./compilers SETUP true || true
|
run: source ./ci-prepare-bionic.sh ./compilers SETUP true || true
|
||||||
|
|
||||||
- name: Setup test environment
|
- name: Setup test environment
|
||||||
run: source ./cpp/ci-prepare-bionic.sh ./compilers VARS false || true
|
run: source ./ci-prepare-bionic.sh ./compilers VARS false || true
|
||||||
|
|
||||||
- name: Test compile gcc @ CMake 3.13
|
- name: Test compile gcc @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build gcc all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build gcc all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile clang @ CMake 3.13
|
- name: Test compile clang @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build clang all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build clang all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile nvhpc @ CMake 3.13
|
- name: Test compile nvhpc @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build nvhpc all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build nvhpc all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile aocc @ CMake 3.13
|
- name: Test compile aocc @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build aocc all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build aocc all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile aomp @ CMake 3.13
|
- name: Test compile aomp @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build aomp all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build aomp all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile hip @ CMake 3.13
|
- name: Test compile hip @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build hip all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build hip all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile dpcpp @ CMake 3.13
|
- name: Test compile dpcpp @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build dpcpp all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build dpcpp all ${{ env.CMAKE_3_13_BIN }}
|
||||||
- name: Test compile hipsycl @ CMake 3.13
|
- name: Test compile hipsycl @ CMake 3.13
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build hipsycl all ${{ env.CMAKE_3_13_BIN }}
|
run: ./ci-test-compile.sh ./build hipsycl all ${{ env.CMAKE_3_13_BIN }}
|
||||||
|
|
||||||
- name: Test compile gcc @ CMake 3.15
|
- name: Test compile gcc @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build gcc all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build gcc all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile clang @ CMake 3.15
|
- name: Test compile clang @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build clang all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build clang all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile nvhpc @ CMake 3.15
|
- name: Test compile nvhpc @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build nvhpc all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build nvhpc all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile aocc @ CMake 3.15
|
- name: Test compile aocc @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build aocc all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build aocc all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile aomp @ CMake 3.15
|
- name: Test compile aomp @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build aomp all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build aomp all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile hip @ CMake 3.15
|
- name: Test compile hip @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build hip all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build hip all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile dpcpp @ CMake 3.15
|
- name: Test compile dpcpp @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build dpcpp all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build dpcpp all ${{ env.CMAKE_3_15_BIN }}
|
||||||
- name: Test compile hipsycl @ CMake 3.15
|
- name: Test compile hipsycl @ CMake 3.15
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build hipsycl all ${{ env.CMAKE_3_15_BIN }}
|
run: ./ci-test-compile.sh ./build hipsycl all ${{ env.CMAKE_3_15_BIN }}
|
||||||
|
|
||||||
- name: Test compile gcc @ CMake 3.18
|
- name: Test compile gcc @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build gcc all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build gcc all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile clang @ CMake 3.18
|
- name: Test compile clang @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build clang all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build clang all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile nvhpc @ CMake 3.18
|
- name: Test compile nvhpc @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build nvhpc all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build nvhpc all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile aocc @ CMake 3.18
|
- name: Test compile aocc @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build aocc all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build aocc all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile aomp @ CMake 3.18
|
- name: Test compile aomp @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build aomp all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build aomp all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile hip @ CMake 3.18
|
- name: Test compile hip @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build hip all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build hip all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile dpcpp @ CMake 3.18
|
- name: Test compile dpcpp @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build dpcpp all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build dpcpp all ${{ env.CMAKE_3_18_BIN }}
|
||||||
- name: Test compile hipsycl @ CMake 3.18
|
- name: Test compile hipsycl @ CMake 3.18
|
||||||
if: ${{ ! cancelled() }}
|
if: ${{ ! cancelled() }}
|
||||||
run: ./cpp/ci-test-compile.sh ./build hipsycl all ${{ env.CMAKE_3_18_BIN }}
|
run: ./ci-test-compile.sh ./build hipsycl all ${{ env.CMAKE_3_18_BIN }}
|
||||||
Loading…
Reference in New Issue
Block a user