-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use Intel openAPI container to build project - cannot run setvars inside container
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
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,29 @@ | ||
name: Build project | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**.cpp" | ||
- "**.hpp" | ||
- "CMakeLists.txt" | ||
- ".github/workflows/**/*" | ||
- "build.sh" | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Set up the Intel oneAPI Docker container | ||
- name: Set up Intel oneAPI container | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: intel/oneapi-hpckit:latest | ||
shell: bash | ||
options: -v ${{ github.workspace }}:/workspace -e CI=1 --rm # Remove the container after execution | ||
# Inside the container, run build commands | ||
run: | | ||
cd /workspace | ||
bash build.sh |
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