-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1279 from WEKIT-ECS/release_2.0
Release 2.0 to Master
- Loading branch information
Showing
1,077 changed files
with
169,066 additions
and
9,445 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 |
---|---|---|
|
@@ -17,28 +17,40 @@ jobs: | |
echo "path of the credentials resource $GITHUB_WORKSPACE/ibm-credentials.txt" | ||
export IBM_CREDENTIALS_FILE="$GITHUB_WORKSPACE/ibm-credentials.env" | ||
# Fonts | ||
- name: Install fonts | ||
run: | | ||
echo -n "Installing core fonts" | ||
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections | ||
echo "ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note" | sudo debconf-set-selections | ||
sudo apt install ttf-mscorefonts-installer | ||
sudo fc-cache -f | ||
fc-match Arial | ||
# Cache | ||
- name: Caching | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: Library | ||
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | ||
key: Library-linux-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | ||
restore-keys: | | ||
Library- | ||
Library-linux | ||
# Test stage | ||
- name: Unity Test runner (edit and play mode) | ||
uses: game-ci/[email protected].0-alpha-7 | ||
uses: game-ci/[email protected].3 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
unityVersion: 2020.3.13f1 | ||
|
||
unityVersion: 2021.3.8f1 | ||
build: | ||
name: Build Unity | ||
runs-on: ubuntu-latest | ||
needs: test | ||
outputs: | ||
buildVersion: ${{ steps.buildStep.outputs.buildVersion }} | ||
steps: | ||
# Activation stage | ||
- name: Checkout repository | ||
|
@@ -52,35 +64,67 @@ jobs: | |
ls -la | ||
echo "path of the credentials resource $GITHUB_WORKSPACE/ibm-credentials.txt" | ||
export IBM_CREDENTIALS_FILE="$GITHUB_WORKSPACE/ibm-credentials.env" | ||
export TARGET_PLATFORM="Android" | ||
# Fonts | ||
- name: Install fonts | ||
run: | | ||
echo -n "Installing core fonts" | ||
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections | ||
echo "ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note" | sudo debconf-set-selections | ||
sudo apt install ttf-mscorefonts-installer | ||
sudo fc-cache -f | ||
fc-match Arial | ||
# Cache | ||
- name: Caching | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: Library | ||
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | ||
key: Library-linux-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | ||
restore-keys: | | ||
Library- | ||
Library-linux | ||
# Build stage | ||
- name: Unity builder | ||
uses: game-ci/unity-builder@v2 | ||
uses: game-ci/unity-builder@v2.1.1 | ||
id: buildStep | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
with: | ||
targetPlatform: Android | ||
unityVersion: 2020.3.13f1 | ||
unityVersion: 2021.3.8f1 | ||
versioning: Semantic | ||
# dirty build needed to include generated Watson credentials | ||
allowDirtyBuild: true | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build | ||
name: Android | ||
path: build | ||
retention-days: 90 | ||
retention-days: 3 | ||
if-no-files-found: error | ||
|
||
# Deploy stage | ||
prerelease-notification: | ||
name: Prerelease Slack notification | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: github.ref == 'refs/heads/develop' && !github.event.pull_request | ||
env: | ||
SLACK_URL: ${{ secrets.SLACK_URL }} | ||
COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | ||
APP_VERSION: ${{ needs.build.outputs.buildVersion }} | ||
TARGET_PLATFORM: ${{ runner.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Post notification | ||
run: | | ||
echo $APP_VERSION | ||
sudo apt-get update && sudo apt-get -y install curl | ||
chmod +x ./ci/notify-preview.sh && ./ci/notify-preview.sh |
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 |
---|---|---|
|
@@ -14,11 +14,11 @@ jobs: | |
- name: Setup Unity | ||
uses: kuler90/[email protected] | ||
with: | ||
unity-version: 2020.3.13f1 | ||
unity-version: 2021.3.8f1 | ||
|
||
# Request manual activation file | ||
- name: Request manual activation file | ||
run: ci\get_windows_activation_file.bat | ||
run: .\ci\get_windows_activation_file.bat | ||
# Upload artifact (Unity_v20XX.X.XXXX.alf) | ||
- name: Expose as artifact | ||
uses: actions/upload-artifact@v2 | ||
|
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
Binary file modified
BIN
+356 Bytes
(110%)
Assets/AddressableAssetsData/Android/addressables_content_state.bin
Binary file not shown.
Oops, something went wrong.