Skip to content

Commit

Permalink
Update build_linux.yml (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu authored Apr 3, 2024
1 parent f28594c commit 9879a6a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,29 @@ jobs:
submodules: true
fetch-depth: 0

- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}/OpenCL-SDK
branch: v2023.12.14
repository: KhronosGroup/OpenCL-SDK
submodules: true
fetch-depth: 0

- name: Check OpenCL Cache
id: opencl_cache
uses: actions/cache@v3
with:
path: |
OpenCL-SDK
key: __${{ runner.os }}_${{ matrix.arch }}-opencl-v2021.06.30__${{ hashFiles('**/CMakeLists.txt') }}
restore-keys: |
__${{runner.os }}-opencl__
- name: Build OpenCL
run: |
cmake -S OpenCL-SDK -B ${{ github.workspace }}/OpenCL-SDK/build -DOPENCL_SDK_BUILD_SAMPLES=OFF -DOPENCL_ICD_LOADER_BUILD=ON -DOPENCL_SDK_BUILD_OPENGL_SAMPLES=OFF -D BUILD_TESTING=OFF -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D OPENCL_SDK_TEST_SAMPLES=OFF
cmake --build ${{ github.workspace }}/OpenCL-SDK/build --target install
- name: 🔗 GDExtension Build
uses: ughuuu/godot-cpp-template/.github/actions/build@add-more-stuff/options-to-build
with:
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ jobs:
include:
- precision: single
arch: x86_64
opencl_arch: x64
- precision: double
arch: x86_64
opencl_arch: x64

runs-on: ubuntu-latest
steps:
Expand All @@ -24,6 +22,29 @@ jobs:
submodules: true
fetch-depth: 0

- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}/OpenCL-SDK
branch: v2023.12.14
repository: KhronosGroup/OpenCL-SDK
submodules: true
fetch-depth: 0

- name: Check OpenCL Cache
id: opencl_cache
uses: actions/cache@v3
with:
path: |
OpenCL-SDK
key: __${{ runner.os }}_${{ matrix.arch }}-opencl-v2021.06.30__${{ hashFiles('**/CMakeLists.txt') }}
restore-keys: |
__${{runner.os }}-opencl__
- name: Build OpenCL
run: |
cmake -S OpenCL-SDK -B ${{ github.workspace }}/OpenCL-SDK/build -DOPENCL_SDK_BUILD_SAMPLES=OFF -DOPENCL_ICD_LOADER_BUILD=ON -DOPENCL_SDK_BUILD_OPENGL_SAMPLES=OFF -D BUILD_TESTING=OFF -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D OPENCL_SDK_TEST_SAMPLES=OFF
cmake --build ${{ github.workspace }}/OpenCL-SDK/build --target install
- name: 🔗 GDExtension Build
uses: ughuuu/godot-cpp-template/.github/actions/build@add-more-stuff/options-to-build
with:
Expand Down

0 comments on commit 9879a6a

Please sign in to comment.