From 04003d67d18156f4e84401b7cfda3a475a4caba7 Mon Sep 17 00:00:00 2001 From: ShimizuNaoki Date: Mon, 11 Jan 2021 12:24:41 +0900 Subject: [PATCH] use Intel Compiler icc --- .github/workflows/publish_artifacts.yaml | 37 +++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_artifacts.yaml b/.github/workflows/publish_artifacts.yaml index 2b0c7164..710a0d97 100644 --- a/.github/workflows/publish_artifacts.yaml +++ b/.github/workflows/publish_artifacts.yaml @@ -13,7 +13,7 @@ jobs: env: # See: https://docs.github.com/ja/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idenv OUTPUT_DIR: edax_runner-bin runs-on: ${{ matrix.os }} - timeout-minutes: 5 + timeout-minutes: 10 strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] @@ -22,14 +22,29 @@ jobs: edax-runner_bin_name: edax_runner-linux edax_build_command: make build ARCH=x64-modern COMP=gcc OS=linux edax_bin_name: lEdax-x64-modern + intel_components_install_script: oneapi-ci/scripts/install_linux.sh + intel_cpp_components: intel.oneapi.lin.dpcpp-cpp-compiler-pro + hrckit_url: https://registrationcenter-download.intel.com/akdlm/irc_nas/17427/l_HPCKit_p_2021.1.0.2684_offline.sh + intel_cpp_components_cache_path: /opt/intel/oneapi/compiler + prepare_command_for_cache_restore_of_cpp_components: '' - os: windows-latest edax-runner_bin_name: edax_runner-windows.exe edax_build_command: make build ARCH=x64 COMP=gcc OS=windows edax_bin_name: wEdax-x64-modern.exe + intel_components_install_script: oneapi-ci/scripts/install_windows.bat + intel_cpp_components: intel.oneapi.win.cpp-compiler + hrckit_url: https://registrationcenter-download.intel.com/akdlm/irc_nas/17392/w_HPCKit_p_2021.1.0.2682_offline.exe + intel_cpp_components_cache_path: C:\Program Files (x86)\Intel\oneAPI\compiler + prepare_command_for_cache_restore_of_cpp_components: '' - os: macOS-latest edax-runner_bin_name: edax_runner-mac edax_build_command: make build ARCH=x64-modern COMP=gcc OS=osx edax_bin_name: mEdax + intel_components_install_script: oneapi-ci/scripts/install_macos.sh + intel_cpp_components: intel.oneapi.mac.cpp-compiler + hrckit_url: https://registrationcenter-download.intel.com/akdlm/irc_nas/17398/m_HPCKit_p_2021.1.0.2681_offline.dmg + intel_cpp_components_cache_path: /opt/intel/oneapi + prepare_command_for_cache_restore_of_cpp_components: sudo mkdir -p /opt/intel && sudo chown $USER /opt/intel steps: - uses: actions/checkout@v2 @@ -49,6 +64,26 @@ jobs: path: edax-reversi key: ${{ runner.os }}-edax-reversi-${{ hashFiles('scripts/build_edax.sh') }} + # setup Intel Compiler icc + # See: https://github.com/oneapi-src/oneapi-ci/issues/31 + - uses: actions/checkout@v2 + with: + repository: oneapi-src/oneapi-ci + path: oneapi-ci + - name: prepare for cache restore + run: ${{ matrix.prepare_command_for_cache_restore_of_cpp_components }} + - name: cache intel components + id: cache-intel-components + uses: actions/cache@v2 + with: + path: /opt/intel/oneapi + key: install-${{ matrix.hrckit_url }}-${{ matrix.intel_cpp_components }} + - name: install + if: steps.cache-intel-components.outputs.cache-hit != 'true' + run: ${{ matrix.intel_components_install_script }} ${{ matrix.hrckit_url }} ${{ matrix.intel_cpp_components }} + - name: test dayooooo + run: icc -h + - name: build edax-runner env: dst: ${{ env.OUTPUT_DIR }}