-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'improve_release_flow' of https://github.com/KirisameMar…
…isa/BocchiTracker into improve_release_flow
- Loading branch information
Showing
1 changed file
with
106 additions
and
64 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 |
---|---|---|
|
@@ -11,95 +11,137 @@ permissions: | |
contents: read | ||
|
||
jobs: | ||
upload-plugins-artifact: | ||
unity-build: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
strategy: | ||
matrix: | ||
runs-on: [windows-latest, macos-latest, ubuntu-latest, ] | ||
runs-on: ${{ matrix.runs-on }} | ||
|
||
env: | ||
Builder: 1 | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Set up .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Install cmake on ubuntu-latest | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update -y | ||
sudo apt install -y cmake | ||
- name: Install cmake on macos-latest | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew update | ||
brew install cmake | ||
- name: Install cmake on windows-latest | ||
if: runner.os == 'Windows' | ||
run: | | ||
choco install cmake | ||
- name: Add msbuild to PATH | ||
if: runner.os == 'Windows' | ||
uses: microsoft/[email protected] | ||
|
||
- name: setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- run: pip install SCons | ||
|
||
- name: Build flatbuffers | ||
run: python ExternalTools/BuildScripts/build_flatbuffers.py | ||
|
||
- name: Build Godot | ||
run: python ExternalTools/BuildScripts/build_godot.py | ||
|
||
- name: Upload Artifact Godot | ||
uses: actions/upload-artifact@v3 | ||
run: python ExternalTools/BuildScripts/build_flatbuffers_csharp.py | ||
|
||
- name: Setup unity | ||
uses: game-ci/unity-builder@v4 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
name: Artifact-Godot-Plugin | ||
path: Plugins/Godot/project/addons | ||
|
||
- name: Upload Artifact UnrealEngine | ||
projectPath: Plugins/Unity/project | ||
buildMethod: GenUnityPackage.Export | ||
- name: Upload Artifact Unity | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifact-UnrealEngine-Plugin | ||
path: Plugins/UnrealEngine | ||
name: Artifact-Unity-Plugin | ||
path: Plugins/Unity/Artifact | ||
|
||
# upload-plugins-artifact: | ||
# permissions: | ||
# contents: write | ||
# pull-requests: write | ||
|
||
# strategy: | ||
# matrix: | ||
# runs-on: [windows-latest, macos-latest, ubuntu-latest, ] | ||
# runs-on: ${{ matrix.runs-on }} | ||
|
||
upload-app-artifact: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
# env: | ||
# Builder: 1 | ||
|
||
runs-on: windows-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
# - name: Checkout submodules | ||
# run: git submodule update --init --recursive | ||
|
||
# - name: Install cmake on ubuntu-latest | ||
# if: runner.os == 'Linux' | ||
# run: | | ||
# sudo apt update -y | ||
# sudo apt install -y cmake | ||
|
||
# - name: Install cmake on macos-latest | ||
# if: runner.os == 'macOS' | ||
# run: | | ||
# brew update | ||
# brew install cmake | ||
|
||
# - name: Install cmake on windows-latest | ||
# if: runner.os == 'Windows' | ||
# run: | | ||
# choco install cmake | ||
|
||
# - name: Add msbuild to PATH | ||
# if: runner.os == 'Windows' | ||
# uses: microsoft/[email protected] | ||
|
||
# - name: setup python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.10' | ||
|
||
# - run: pip install SCons | ||
|
||
# - name: Build flatbuffers | ||
# run: python ExternalTools/BuildScripts/build_flatbuffers.py | ||
|
||
# - name: Build Godot | ||
# run: python ExternalTools/BuildScripts/build_godot.py | ||
|
||
# - name: Upload Artifact Godot | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: Artifact-Godot-Plugin | ||
# path: Plugins/Godot/project/addons | ||
|
||
# - name: Upload Artifact UnrealEngine | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: Artifact-UnrealEngine-Plugin | ||
# path: Plugins/UnrealEngine | ||
|
||
# upload-app-artifact: | ||
# permissions: | ||
# contents: write | ||
# pull-requests: write | ||
|
||
# runs-on: windows-latest | ||
|
||
# steps: | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Set up .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 7.0.x | ||
# - name: Set up .NET Core | ||
# uses: actions/setup-dotnet@v4 | ||
# with: | ||
# dotnet-version: 7.0.x | ||
|
||
- name: Build C# application | ||
run: dotnet build Application/BocchiTracker.WPF.sln -c Release | ||
# - name: Build C# application | ||
# run: dotnet build Application/BocchiTracker.WPF.sln -c Release | ||
|
||
- name: Upload Artifact Application | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifact-BocchiTracker | ||
path: Application/WPF/Artifact/Release/net7.0-windows | ||
# - name: Upload Artifact Application | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: Artifact-BocchiTracker | ||
# path: Application/WPF/Artifact/Release/net7.0-windows | ||
|
||
# create_draft_release: | ||
# permissions: | ||
|