forked from Tencent/puerts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Tencent:master' into master
- Loading branch information
Showing
22 changed files
with
424 additions
and
80 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
.github/workflows/composites/unity-build-plugins/wasm/action.yml
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,48 @@ | ||
name: build linux unity plugin | ||
|
||
inputs: | ||
backend: | ||
description: 'js backend' | ||
required: true | ||
config: | ||
type: choice | ||
description: Release Or Debug | ||
default: 'Release' | ||
options: | ||
- Release | ||
- Debug | ||
GITHUB_TOKEN: | ||
required: | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install libc++-dev | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install clang | ||
sudo apt-get install build-essential | ||
sudo apt-get install libc++-dev | ||
sudo apt-get install libc++abi-dev | ||
- name: Build | ||
shell: bash | ||
run: | | ||
cd unity | ||
npm i | ||
git clone https://github.com/emscripten-core/emsdk.git | ||
cd emsdk | ||
git pull | ||
./emsdk install 3.1.8 | ||
./emsdk activate 3.1.8 | ||
source ./emsdk_env.sh | ||
cd ../native_src | ||
node ../cli make --platform wasm --arch wasm32 --backend quickjs --config ${{ inputs.config }} | ||
- name: Upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./unity/Assets/core/upm/Plugins/**/* | ||
name: Unity_Plugins (${{ inputs.backend }}_${{ inputs.config }}) | ||
- name: Clean | ||
shell: bash | ||
run: rm -rf ./unity/Assets/core/upm/Plugins/**/* |
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
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
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
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
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
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
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
Oops, something went wrong.