forked from google/angle
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add submodules update scipts and setup CI build.
- Loading branch information
Showing
16 changed files
with
1,631 additions
and
745 deletions.
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,253 @@ | ||
name: Godot ANGLE static libs | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.name }} | ||
strategy: | ||
matrix: | ||
include: | ||
# macOS and iOS | ||
- name: 🍎 macOS x86_64 | ||
platform: macos | ||
os: macos-13 | ||
xcode: "15.0" | ||
artifact-name: godot-angle-static-x86_64-macos-release | ||
artifact-path-angle: bin/libANGLE.macos.x86_64.a | ||
artifact-path-egl: bin/libEGL.macos.x86_64.a | ||
artifact-path-gles: bin/libGLES.macos.x86_64.a | ||
flags: arch=x86_64 | ||
|
||
- name: 🍎 macOS arm64 | ||
platform: macos | ||
os: macos-13 | ||
xcode: "15.0" | ||
artifact-name: godot-angle-static-arm64-macos-release | ||
artifact-path-angle: bin/libANGLE.macos.arm64.a | ||
artifact-path-egl: bin/libEGL.macos.arm64.a | ||
artifact-path-gles: bin/libGLES.macos.arm64.a | ||
flags: arch=arm64 | ||
|
||
- name: 🍏 iOS x86_64 simulator | ||
platform: ios | ||
os: macos-13 | ||
xcode: "15.0" | ||
artifact-name: godot-angle-static-x86_64-ios-sim-release | ||
artifact-path-angle: bin/libANGLE.ios.x86_64.simulator.a | ||
artifact-path-egl: bin/libEGL.ios.x86_64.simulator.a | ||
artifact-path-gles: bin/libGLES.ios.x86_64.simulator.a | ||
flags: arch=x86_64 ios_simulator=yes | ||
|
||
- name: 🍏 iOS arm64 simulator | ||
platform: ios | ||
os: macos-13 | ||
xcode: "15.0" | ||
artifact-name: godot-angle-static-arm64-ios-sim-release | ||
artifact-path-angle: bin/libANGLE.ios.arm64.simulator.a | ||
artifact-path-egl: bin/libEGL.ios.arm64.simulator.a | ||
artifact-path-gles: bin/libGLES.ios.arm64.simulator.a | ||
flags: arch=arm64 ios_simulator=yes | ||
|
||
- name: 🍏 iOS arm64 device | ||
platform: ios | ||
os: macos-13 | ||
xcode: "15.0" | ||
artifact-name: godot-angle-static-arm64-ios-release | ||
artifact-path-angle: bin/libANGLE.ios.arm64.a | ||
artifact-path-egl: bin/libEGL.ios.arm64.a | ||
artifact-path-gles: bin/libGLES.ios.arm64.a | ||
flags: arch=arm64 | ||
|
||
# MinGW/LLVM libs using UCRT | ||
- name: 🏁 Windows - MinGW/LLVM (UCRT) x86_64 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-x86_64-llvm-release | ||
artifact-path-angle: bin/libANGLE.windows.x86_64.a | ||
artifact-path-egl: bin/libEGL.windows.x86_64.a | ||
artifact-path-gles: bin/libGLES.windows.x86_64.a | ||
flags: use_mingw=yes arch=x86_64 use_llvm=yes mingw_prefix=$HOME/llvm-mingw | ||
llvm: yes | ||
|
||
- name: 🏁 Windows - MinGW/LLVM (UCRT) x86_32 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-x86_32-llvm-release | ||
artifact-path-angle: bin/libANGLE.windows.x86_32.a | ||
artifact-path-egl: bin/libEGL.windows.x86_32.a | ||
artifact-path-gles: bin/libGLES.windows.x86_32.a | ||
flags: use_mingw=yes arch=x86_32 use_llvm=yes mingw_prefix=$HOME/llvm-mingw | ||
llvm: yes | ||
|
||
- name: 🏁 Windows - MinGW/LLVM (UCRT) arm64 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-arm64-llvm-release | ||
artifact-path-angle: bin/libANGLE.windows.arm64.a | ||
artifact-path-egl: bin/libEGL.windows.arm64.a | ||
artifact-path-gles: bin/libGLES.windows.arm64.a | ||
flags: use_mingw=yes arch=arm64 use_llvm=yes mingw_prefix=$HOME/llvm-mingw | ||
llvm: yes | ||
|
||
# MSVC libs | ||
- name: 🏁 Windows - MSVC x86_64 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-x86_64-msvc-release | ||
artifact-path-angle: bin/libANGLE.windows.x86_64.lib | ||
artifact-path-egl: bin/libEGL.windows.x86_64.lib | ||
artifact-path-gles: bin/libGLES.windows.x86_64.lib | ||
flags: use_mingw=no arch=x86_64 | ||
|
||
- name: 🏁 Windows - MSVC x86_32 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-x86_32-msvc-release | ||
artifact-path-angle: bin/libANGLE.windows.x86_32.lib | ||
artifact-path-egl: bin/libEGL.windows.x86_32.lib | ||
artifact-path-gles: bin/libGLES.windows.x86_32.lib | ||
flags: use_mingw=no arch=x86_32 | ||
|
||
- name: 🏁 Windows - MSVC arm64 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-arm64-msvc-release | ||
artifact-path-angle: bin/libANGLE.windows.arm64.lib | ||
artifact-path-egl: bin/libEGL.windows.arm64.lib | ||
artifact-path-gles: bin/libGLES.windows.arm64.lib | ||
flags: use_mingw=no arch=arm64 | ||
|
||
- name: 🏁 Windows - MSVC arm32 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-arm32-msvc-release | ||
artifact-path-angle: bin/libANGLE.windows.arm32.lib | ||
artifact-path-egl: bin/libEGL.windows.arm32.lib | ||
artifact-path-gles: bin/libGLES.windows.arm32.lib | ||
flags: use_mingw=no arch=arm32 | ||
|
||
# MinGW/GCC libs using MSVCRT | ||
- name: 🏁 Windows - MinGW/GCC (MSVCRT) x86_64 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-x86_64-gcc-release | ||
artifact-path-angle: bin/libANGLE.windows.x86_64.a | ||
artifact-path-egl: bin/libEGL.windows.x86_64.a | ||
artifact-path-gles: bin/libGLES.windows.x86_64.a | ||
flags: use_mingw=yes arch=x86_64 | ||
mingw: yes | ||
msys: mingw64 | ||
msysenv: x86_64 | ||
|
||
- name: 🏁 Windows - MinGW/GCC (MSVCRT) x86_32 | ||
platform: windows | ||
os: windows-2019 | ||
artifact-name: godot-angle-static-x86_32-gcc-release | ||
artifact-path-angle: bin/libANGLE.windows.x86_32.a | ||
artifact-path-egl: bin/libEGL.windows.x86_32.a | ||
artifact-path-gles: bin/libGLES.windows.x86_32.a | ||
flags: use_mingw=yes arch=x86_32 | ||
mingw: yes | ||
msys: mingw32 | ||
msysenv: i686 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
XCODE_DEV_PATH: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Select Xcode version | ||
if: ${{ matrix.platform == 'macos' || matrix.platform == 'ios' }} | ||
run: sudo xcode-select -switch "${XCODE_DEV_PATH}" | ||
|
||
- name: Install SCons (Native env) | ||
if: ${{ matrix.mingw != 'yes' }} | ||
run: | | ||
python -m pip install scons==4.0.0 | ||
- name: Install mako | ||
run: | | ||
python -m pip install mako | ||
- name: Setup MinGW/LLVM | ||
if: ${{ matrix.platform == 'windows' && matrix.llvm == 'yes' }} | ||
run: | | ||
curl -L -O https://github.com/mstorsjo/llvm-mingw/releases/download/20240619/llvm-mingw-20240619-ucrt-x86_64.zip | ||
unzip -q llvm-mingw-*.zip | ||
rm llvm-mingw-*.zip | ||
mv llvm-mingw-* "$HOME/llvm-mingw" | ||
echo "$HOME/llvm-mingw/bin" >> $GITHUB_PATH | ||
- name: Setup MinGW/MSYS2 | ||
if: ${{ matrix.mingw == 'yes' }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
msystem: ${{matrix.msys}} | ||
install: mingw-w64-${{matrix.msysenv}}-gcc mingw-w64-${{matrix.msysenv}}-scons | ||
|
||
- name: Prepare ANGLE source | ||
shell: bash | ||
run: | | ||
./update_angle.sh | ||
- name: Build ANGLE (Native env) | ||
if: ${{ matrix.mingw != 'yes' }} | ||
run: | | ||
scons platform=${{ matrix.platform }} ${{ matrix.flags }} optimize=speed | ||
- name: Build ANGLE (MSYS2 env) | ||
if: ${{ matrix.mingw == 'yes' }} | ||
shell: msys2 {0} | ||
run: | | ||
scons platform=${{ matrix.platform }} ${{ matrix.flags }} optimize=speed | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }} | ||
path: | | ||
${{ matrix.artifact-path-angle }} | ||
${{ matrix.artifact-path-egl }} | ||
${{ matrix.artifact-path-gles }} | ||
if-no-files-found: error | ||
|
||
release: | ||
name: 'Release' | ||
|
||
needs: [build] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
removeArtifacts: true | ||
omitNameDuringUpdate: true | ||
omitBodyDuringUpdate: true | ||
artifacts: "godot-angle-static*" | ||
artifactErrorsFailBuild: true |
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 |
---|---|---|
@@ -1,134 +1,4 @@ | ||
.DS_Store | ||
.vs | ||
.vscode | ||
*.Makefile | ||
*.ncb | ||
*.nvuser | ||
*.opensdf | ||
*.orig | ||
*.psess | ||
*.pyc | ||
*.rej | ||
*.sdf | ||
*.sln | ||
*.suo | ||
*.target.mk | ||
*.TMP | ||
*.VC.db | ||
*.VC.opendb | ||
*.vcproj | ||
*.vcxproj | ||
*.vcxproj.filters | ||
*.vcxproj.user | ||
*.vsp | ||
*~ | ||
.*.sw* | ||
.sw* | ||
.cipd | ||
.gclient* | ||
.git_cl_description_backup | ||
/src/tests/third_party/gles_conformance_tests | ||
/testing | ||
/third_party/abseil-cpp | ||
/third_party/android_build_tools | ||
/third_party/android_deps | ||
/third_party/android_platform | ||
/third_party/android_sdk | ||
/third_party/android_system_sdk/*.jar | ||
/third_party/android_toolchain | ||
/third_party/astc-encoder/src | ||
/third_party/bazel/desugar/*.jar | ||
/third_party/catapult | ||
/third_party/cherry | ||
/third_party/clang-format/script | ||
/third_party/colorama/src | ||
/third_party/cpu_features/src | ||
/third_party/depot_tools | ||
/third_party/EGL-Registry/src | ||
/third_party/flatbuffers/src | ||
/third_party/fuchsia-sdk | ||
/third_party/gles1_conform | ||
/third_party/glmark2/src | ||
/third_party/googletest | ||
/third_party/ijar | ||
/third_party/jdk/current | ||
/third_party/jdk/extras/java_8 | ||
/third_party/jinja2 | ||
/third_party/jsoncpp | ||
/third_party/kotlin_stdlib | ||
/third_party/libdrm | ||
/third_party/libjpeg_turbo | ||
/third_party/libpng/src | ||
/third_party/llvm-build | ||
/third_party/markupsafe | ||
/third_party/meson | ||
/third_party/nasm | ||
/third_party/ninja | ||
/third_party/OpenCL-Docs/src | ||
/third_party/OpenCL-ICD-Loader/src | ||
/third_party/OpenGL-Registry/src | ||
/third_party/proguard/lib | ||
/third_party/protobuf | ||
/third_party/Python-Markdown | ||
/third_party/qemu-linux-x64 | ||
/third_party/qemu-mac-x64 | ||
/third_party/r8/d8 | ||
/third_party/r8/lib | ||
/third_party/rapidjson/src | ||
/third_party/requests/src | ||
/third_party/six | ||
/third_party/SwiftShader | ||
/third_party/turbine/*.jar | ||
/third_party/VK-GL-CTS/src | ||
/third_party/vulkan-deps | ||
/third_party/vulkan_memory_allocator | ||
/third_party/wayland | ||
/third_party/zlib | ||
/tools/android | ||
/tools/clang | ||
/tools/flex-bison/linux/bison | ||
/tools/flex-bison/linux/flex | ||
/tools/flex-bison/windows/bison.exe | ||
/tools/flex-bison/windows/flex.exe | ||
/tools/flex-bison/windows/m4.exe | ||
/tools/flex-bison/windows/msys*.dll | ||
/tools/glslang/glslang_validator | ||
/tools/glslang/glslang_validator.exe | ||
/tools/luci-go | ||
/tools/mb | ||
/tools/md_browser | ||
/tools/memory | ||
/tools/perf | ||
/tools/protoc_wrapper | ||
/tools/python | ||
/tools/skia_goldctl | ||
/tools/valgrind | ||
angle.iml | ||
angle_debug.txt | ||
/build | ||
/buildtools | ||
debug.txt | ||
Debug/ | ||
Debug_ARM/ | ||
Debug_Win32/ | ||
Debug_x64/ | ||
diag.txt | ||
ipch | ||
lib/* | ||
out | ||
patches-* | ||
Release/ | ||
Release_ARM/ | ||
Release_Win32/ | ||
Release_x64/ | ||
TestResults.qpa | ||
.idea/ | ||
|
||
# Any temporary files will confuse code generation. | ||
!scripts/code_generation_hashes/* | ||
|
||
# Godot scons files. | ||
*.obj | ||
.sconsign.dblite | ||
bin/ | ||
*.o | ||
godot-angle/ | ||
*.pyc |
Oops, something went wrong.