Skip to content

Workflow file for this run

name: Build Linux
on:
workflow_dispatch:
workflow_call:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- precision: single
arch: x86_64
- precision: double
arch: x86_64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
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: godot/godot-cpp-template/.github/actions/build
with:
platform: linux
arch: ${{ matrix.arch }}
godot-cpp-location: godot-cpp
float-precision: ${{ matrix.precision }}
build-target-type: template_release
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Godot_Whisper
path: |
${{ github.workspace }}/bin/**/*.so
if-no-files-found: error