summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-10-17 00:51:32 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-10-17 20:59:33 +0200
commit690b31e7dd8d4583c50c1f5c60fde3c6888ff7bf (patch)
tree00454cbbbc84ff6bc3992d50d677fe72bb0e369a /.github/workflows
parent9b0a5d8b4677e6e10d7fb7f96ba469738add47e9 (diff)
downloadfork-godot-webrtc-native-690b31e7dd8d4583c50c1f5c60fde3c6888ff7bf.tar.gz
fork-godot-webrtc-native-690b31e7dd8d4583c50c1f5c60fde3c6888ff7bf.tar.bz2
fork-godot-webrtc-native-690b31e7dd8d4583c50c1f5c60fde3c6888ff7bf.zip
[Upstream] Update to Godot beta 3.
Update build targets. Move release script out of CI yaml. Disable debug CI builds for Godot 3.x since they are mostly used for debugging the extension itself.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_release.yml43
1 files changed, 13 insertions, 30 deletions
diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml
index 73e604e..ab7ee01 100644
--- a/.github/workflows/build_release.yml
+++ b/.github/workflows/build_release.yml
@@ -59,7 +59,7 @@ jobs:
arch: 'x86_64'
gdnative_flags: 'ios_arch=x86_64'
sconsflags: 'ios_simulator=true'
- os: 'macos-latest'
+ os: 'macos-11'
cache-name: ios-x86_64-simulator
- platform: ios
arch: 'arm64'
@@ -162,21 +162,17 @@ jobs:
scons --version
cmake --version
- - name: Compile Extension - debug - ${{ matrix.platform }} - ${{ matrix.arch }}
- run: |
- scons target=debug generate_bindings=yes
-
- - name: Compile GDNative - debug - ${{ matrix.platform }} - ${{ matrix.arch }}
+ - name: Compile Extension - template_debug - ${{ matrix.platform }} - ${{ matrix.arch }}
run: |
- scons target=debug generate_bindings=yes ${{ matrix.gdnative_flags }} godot_version=3
+ scons target=template_debug generate_bindings=yes
- - name: Compile Extension - release - ${{ matrix.platform }} - ${{ matrix.arch }}
+ - name: Compile Extension - template_release - ${{ matrix.platform }} - ${{ matrix.arch }}
run: |
- scons target=release
+ scons target=template_release
- name: Compile GDNative - release ${{ matrix.platform }} - ${{ matrix.arch }}
run: |
- scons target=release ${{ matrix.gdnative_flags }} godot_version=3
+ scons target=release generate_bindings=yes ${{ matrix.gdnative_flags }} godot_version=3
- uses: actions/upload-artifact@v3
with:
@@ -208,28 +204,15 @@ jobs:
cp deps/libdatachannel/deps/plog/LICENSE artifacts/LICENSE.plog
- name: Package artifacts for release
+ env:
+ DESTINATION: "release"
run: |
mkdir release
- cd release
-
- ls -R
-
- for version in extension gdnative
- do
- for name in webrtc webrtc_debug
- do
- destdir="${version}/${name}"
- mkdir -p ${destdir}/lib
- find ../artifacts -wholename "*/${destdir}/lib/*" | xargs cp -t ${destdir}/lib/
- find ../artifacts -wholename "*/${destdir}/${name}.tres" -or -wholename "*/${destdir}/${name}.gdextension" | head -n 1 | xargs cp -t ${destdir}/
- find ../artifacts -wholename "*/LICENSE*" | xargs cp -t ${destdir}/
- cd ${version}
- zip -r ../godot-${version}-${name}.zip ${name}
- cd ..
- done
- done
-
- ls -R
+
+ VERSION="extension" TYPE="webrtc" ./misc/scripts/package_release.sh
+ VERSION="gdnative" TYPE="webrtc" ./misc/scripts/package_release.sh
+
+ ls -R release
- uses: actions/upload-artifact@v3
with: