Build artifact #1
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
name: Build artifact | |
# Relevant sources: | |
# - https://game.ci/ | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
name: Build | |
# We use the WIndows runner because there are compile errors in the Ubuntu runner | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Cache Libary | |
uses: actions/cache@v3 | |
with: | |
path: Library | |
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**', 'Structure/**') }} | |
restore-keys: | | |
Library- | |
- name: Build project | |
uses: game-ci/unity-builder@v4 | |
env: | |
# The unity email and password can be found in the 'Game assets' vault of: | |
# - https://vaultwarden.faforever.com/# | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
# The unity license is generated by the Unity Hub application: | |
# - (1) Log in to the Unity account of FAForever | |
# - (2) Go to the properties | |
# - (3) Go to the licenses tab | |
# - (4) Add a new personal license | |
# - (5) The generated license can be found in C:\ProgramData\Unity\Unity_lic.ulf | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
with: | |
customImage: 'unityci/editor:windows-2022.3.26f1-windows-il2cpp-3' | |
targetPlatform: StandaloneWindows64 | |
buildName: FAForeverMapEditor | |
versioning: Tag | |
unityVersion: 2022.3.26f1 | |
- name: Add the Structure Directory to the Built Project | |
shell: bash | |
run: | | |
mv -f ./Structure build/StandaloneWindows64/FAForeverMapEditor_Data/ | |
- name: Upload Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: FAForever Map Editor | |
path: build |