Check script file permissions #4
Workflow file for this run
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
# based on: https://gist.github.com/scivision/b22455e3322826a1c385d5d4b1a8d25e | |
name: Build project | |
env: | |
LINUX_CPP_COMPONENTS: intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic | |
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml | |
CTEST_NO_TESTS_ACTION: error | |
on: | |
push: | |
paths: | |
- "**.cpp" | |
- "**.hpp" | |
- "CMakeLists.txt" | |
- ".github/workflows/**/*" | |
- "build.sh" | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
# must be first as we're using scripts from this repo | |
- uses: actions/checkout@v4 | |
- name: cache install oneAPI | |
id: cache-install | |
uses: actions/cache@v3 | |
with: | |
path: | | |
/opt/intel/oneapi | |
key: install-apt | |
- name: non-cache install oneAPI | |
if: steps.cache-install.outputs.cache-hit != 'true' | |
timeout-minutes: 10 | |
run: | | |
id | |
ls -lisa .github/workflow_scripts/ | |
sh -c .github/workflow_scripts/oneapi_setup_apt_repo_linux.sh | |
sudo apt install ${{ env.LINUX_CPP_COMPONENTS }} | |
- name: Setup Intel oneAPI environment | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
printenv >> $GITHUB_ENV | |
- name: Run build script | |
run: ./build.sh | |
- name: exclude unused files from cache | |
if: steps.cache-install.outputs.cache-hit != 'true' | |
run: sh -c .github/workflow_scripts/oneapi_cache_exclude_linux.sh |