Skip to content

Commit

Permalink
CYF 0.6.6 LTS 3 - Bits and bobs at the End of Times
Browse files Browse the repository at this point in the history
  • Loading branch information
RhenaudTheLukark committed Jul 20, 2024
1 parent 5ac229f commit d277e90
Show file tree
Hide file tree
Showing 463 changed files with 33,363 additions and 17,617 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/activation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Acquire activation file
on:
workflow_dispatch
jobs:
activation:
name: Request manual activation file 🔑
runs-on: ubuntu-latest
steps:
# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
uses: game-ci/unity-request-activation-file@v2
# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
167 changes: 167 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
name: Build CYF & Notify

on: [push, pull_request, workflow_dispatch]

jobs:
buildWindows:
name: Build CYF (Windows)
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true

# Cache
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Build
- name: Build project
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneWindows64
buildMethod: UnityBuilderAction.BuildScript.Build
buildName: CreateYourFrisk-win64

# Copy Assets to Build
- run: sudo mkdir -v "${{ github.workspace }}/build/StandaloneWindows64/Default" "${{ github.workspace }}/build/StandaloneWindows64/Mods"
- run: sudo cp -Rv "${{ github.workspace }}/Assets/Default/" "${{ github.workspace }}/build/StandaloneWindows64/"
- run: sudo cp -Rv "${{ github.workspace }}/Assets/Mods/" "${{ github.workspace }}/build/StandaloneWindows64/"
- run: sudo cp -Rv "${{ github.workspace }}/Documentation CYF 1.0/" "${{ github.workspace }}/build"
- run: sudo find ${{ github.workspace }}/build/StandaloneWindows64/ -name "*.meta" -type f -delete
- run: sudo mv ${{ github.workspace }}/build/StandaloneWindows64/ ${{ github.workspace }}/build/CreateYourFrisk/

# Output
- uses: actions/upload-artifact@v2
with:
name: CreateYourFrisk-win64
path: build

buildMacOS:
name: Build CYF (MacOS)
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true

# Cache
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Build
- name: Build project
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneOSX
buildMethod: UnityBuilderAction.BuildScript.Build
buildName: CreateYourFrisk-macos64

# Copy Assets to Build
- run: sudo mkdir -v "${{ github.workspace }}/build/StandaloneOSX/Default" "${{ github.workspace }}/build/StandaloneOSX/Mods"
- run: sudo cp -Rv "${{ github.workspace }}/Assets/Default/" "${{ github.workspace }}/build/StandaloneOSX/"
- run: sudo cp -Rv "${{ github.workspace }}/Assets/Mods/" "${{ github.workspace }}/build/StandaloneOSX/"
- run: sudo cp -Rv "${{ github.workspace }}/Documentation CYF 1.0/" "${{ github.workspace }}/build"
- run: sudo cp "${{ github.workspace }}/How to use CYF and add mods (Mac).txt" "${{ github.workspace }}/build/StandaloneOSX/"
- run: sudo find ${{ github.workspace }}/build/StandaloneOSX/ -name "*.meta" -type f -delete
- run: sudo mv ${{ github.workspace }}/build/StandaloneOSX/ ${{ github.workspace }}/build/CreateYourFrisk/

# Output
- uses: actions/upload-artifact@v2
with:
name: CreateYourFrisk-macos64
path: build

buildLinux:
name: Build CYF (Linux)
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true

# Cache
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Build
- name: Build project
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneLinux64
buildMethod: UnityBuilderAction.BuildScript.Build
buildName: CreateYourFrisk-lin64

# Copy Assets to Build
- run: sudo mkdir -v "${{ github.workspace }}/build/StandaloneLinux64/Default" "${{ github.workspace }}/build/StandaloneLinux64/Mods"
- run: sudo cp -Rv "${{ github.workspace }}/Assets/Default/" "${{ github.workspace }}/build/StandaloneLinux64/"
- run: sudo cp -Rv "${{ github.workspace }}/Assets/Mods/" "${{ github.workspace }}/build/StandaloneLinux64/"
- run: sudo cp -Rv "${{ github.workspace }}/Documentation CYF 1.0/" "${{ github.workspace }}/build"
- run: sudo find ${{ github.workspace }}/build/StandaloneLinux64/ -name "*.meta" -type f -delete
- run: sudo mv ${{ github.workspace }}/build/StandaloneLinux64/ ${{ github.workspace }}/build/CreateYourFrisk/

# Output
- uses: actions/upload-artifact@v2
with:
name: CreateYourFrisk-lin64
path: build

message-success:
runs-on: ubuntu-latest
needs: [buildWindows, buildMacOS, buildLinux]
if: success()
steps:
- name: Send Success Message
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.NIGHTLY_WEBHOOK_LINK }}
username: Poseur Mail Service
avatar-url: https://assets.git.ttaallkk.top/assets/GitHub-Mark-ea2971cee799.png
content: |
The last CYF nightly is ready to be used! Enjoy!
The links are stored here: https://discord.com/channels/110129114882543616/220238710271115265/1129795830317064314
message-failure:
runs-on: ubuntu-latest
needs: [buildWindows, buildMacOS, buildLinux]
if: failure()
steps:
- name: Send Failure Message
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.NIGHTLY_WEBHOOK_LINK }}
username: Poseur Mail Service
avatar-url: https://assets.git.ttaallkk.top/assets/GitHub-Mark-ea2971cee799.png
content: |
Oh no! The last CYF build failed! You're bad at your job!
The run's details are here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
23 changes: 23 additions & 0 deletions .github/workflows/nightly_notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Send a message to the channel cyf-nightly

on:
workflow_run:
workflows: ["Build CYF"]
types:
- completed
workflow_dispatch:

jobs:
message:
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.NIGHTLY_WEBHOOK_LINK }}
username: Poseur Mail Service
avatar-url: https://assets.git.ttaallkk.top/assets/GitHub-Mark-ea2971cee799.png
content: |
The last CYF nightly is ready to be used! Enjoy!
The links are stored here: https://discord.com/channels/110129114882543616/220238710271115265/1129795830317064314
42 changes: 0 additions & 42 deletions .github/workflows/pages.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ sysinfo.txt
/.vs/*
/.vscode/*
/.bin/*
/.github

# GIMP project files
*.xcf
*.xcf.meta
*.xcf.meta
6 changes: 6 additions & 0 deletions .vsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Workload.ManagedGame"
]
}
5 changes: 2 additions & 3 deletions Assets/Default/Sprites/UI/Fonts/uibattlesmall.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<font>
<color>ffffff</color>
<linespacing>12</linespacing>
<spritesheet>
<sprite name=".">
<rect x="10" y="2" w="3" h="3"/>
Expand Down Expand Up @@ -55,7 +54,7 @@
<rect x="2" y="22" w="12" h="15"/>
</sprite>
<sprite name="E">
<rect x="30" y="88" w="13" h="15"/>
<rect x="30" y="88" w="12" h="15"/>
</sprite>
<sprite name="F">
<rect x="30" y="68" w="12" h="15"/>
Expand Down Expand Up @@ -148,7 +147,7 @@
<rect x="125" y="48" w="12" h="12"/>
</sprite>
<sprite name="-">
<rect x="2" y="2" w="4" h="6"/>
<rect x="2" y="2" w="6" h="9"/>
</sprite>
<sprite name=";">
<rect x="15" y="2" w="3" h="12"/>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d277e90

Please sign in to comment.