Skip to content

Build artifact

Build artifact #2

Workflow file for this run

# Copyright (c) 2024 Josh 'Rowey' Row
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
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