-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6214784
commit a5d777b
Showing
1 changed file
with
19 additions
and
3 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 |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
branches: | ||
- master | ||
- dev-godot-4 | ||
tags: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
|
@@ -37,23 +39,29 @@ jobs: | |
python3 build.py | ||
- name: Check build | ||
run: | | ||
cd build | ||
ls gdcefSubProcess libgdcef.so libcef.so | ||
ls build/gdcefSubProcess build/libgdcef.so build/libcef.so | ||
tar -czvf gdcef-artifacts-godot_4-linux_x86_64.tar.gz build | ||
- name: Do release | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "gdcef-artifacts-godot_4-linux_x86_64.tar.gz" | ||
|
||
############################################################################# | ||
### Windows | ||
############################################################################# | ||
build_windows: | ||
name: Build on Windows | ||
runs-on: windows-2022 | ||
needs: build_linux | ||
steps: | ||
# Add path for finding cl.exe | ||
# FIXME: I dunno why Godot editor and godot-cpp can find cl.exe while our | ||
# godot native modules cannot find it without this extra path | ||
- uses: ilammy/[email protected] | ||
|
||
- name: Checkout GDCEF | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install system packages | ||
|
@@ -72,3 +80,11 @@ jobs: | |
Test-Path -Path \a\gdcef\gdcef\build\gdcefSubProcess.exe | ||
Test-Path -Path \a\gdcef\gdcef\build\libgdcef.dll | ||
Test-Path -Path \a\gdcef\gdcef\build\libcef.dll | ||
cd - | ||
tar -czvf gdcef-artifacts-godot_4-windows_x86_64.tar.gz build | ||
- name: Do release | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "gdcef-artifacts-godot_4-windows_x86_64.tar.gz" | ||
allowUpdates: true |