Compare commits
13 Commits
a8fbf041de
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e41644621d | |||
| 59f149f76e | |||
| 5a2bf1628b | |||
| 174a12d7cb | |||
| ea15cd45d8 | |||
| 1be247f66e | |||
| 409ddd3edb | |||
| 61e937e1f5 | |||
| 1d4548d74c | |||
| 147d6b2d04 | |||
| 44b0323b8a | |||
| e717678b82 | |||
| bebb1b1cf2 |
@ -14,9 +14,85 @@ env:
|
|||||||
ACTIONS_STEP_DEBUG: true
|
ACTIONS_STEP_DEBUG: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
prepare-build:
|
||||||
|
name: Prepare Build Assets
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# Ensure dl link is provided before starting build process
|
||||||
|
- name: Check Gitea Variables
|
||||||
|
run: |
|
||||||
|
if [ -z "${{ secrets.EXPORT_TEMPLATE_DOWNLOAD_LINK }}" ]; then
|
||||||
|
echo "No export template download link provided, cancelling build"
|
||||||
|
echo "Please set the EXPORT_TEMPLATE_DOWNLOAD_LINK secret in Gitea"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Found EXPORT_TEMPLATE_DOWNLOAD_LINK"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
||||||
|
# Should make my docker image for this step in the future
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y curl
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
|
apt-get install -y nodejs unzip git git-lfs
|
||||||
|
git lfs install
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
lfs: true
|
||||||
|
|
||||||
|
# Update the version_info.gd file with info about this build.
|
||||||
|
# If it isn't in the expected spot of game/scripts/version_info.gd skip it
|
||||||
|
- name: Populate Version Text
|
||||||
|
run: |
|
||||||
|
VERSION_FILE="${PROJECT_PATH}/game/scripts/version_info.gd"
|
||||||
|
if [ -f "$VERSION_FILE" ]; then
|
||||||
|
PROJECT_NAME="${EXPORT_NAME}"
|
||||||
|
COMMIT_NUMBER="${GITHUB_RUN_NUMBER}"
|
||||||
|
BRANCH_NAME="${GITHUB_REF_NAME}"
|
||||||
|
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
|
||||||
|
|
||||||
|
sed -i "s/var project_name: String = \"X\"/var project_name: String = \"${PROJECT_NAME}\"/" "$VERSION_FILE"
|
||||||
|
sed -i "s/var commit_number: int = 0/var commit_number: int = ${COMMIT_NUMBER}/" "$VERSION_FILE"
|
||||||
|
sed -i "s/var branch_name: String = \"X\"/var branch_name: String = \"${BRANCH_NAME}\"/" "$VERSION_FILE"
|
||||||
|
sed -i "s/var short_sha: String = \"X\"/var short_sha: String = \"${SHORT_SHA}\"/" "$VERSION_FILE"
|
||||||
|
sed -i "s/var build_override: bool = false/var build_override: bool = true/" "$VERSION_FILE"
|
||||||
|
|
||||||
|
echo "Updated version_info.gd:"
|
||||||
|
cat "$VERSION_FILE"
|
||||||
|
else
|
||||||
|
echo "version_info.gd not found at $VERSION_FILE, skipping."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Download the exprot templates from the link provided in the secrets
|
||||||
|
# The expected format is a zip that contains windows and linux export and debug templates
|
||||||
|
- name: Download Export Templates
|
||||||
|
run: |
|
||||||
|
mkdir -p "$PROJECT_PATH/build/build_dependencies/export_templates"
|
||||||
|
curl -L "${{ secrets.EXPORT_TEMPLATE_DOWNLOAD_LINK }}" -o "$PROJECT_PATH/build/build_dependencies/export_templates/export_templates.zip"
|
||||||
|
unzip -o "$PROJECT_PATH/build/build_dependencies/export_templates/export_templates.zip" -d "$PROJECT_PATH/build/build_dependencies/export_templates/"
|
||||||
|
rm "$PROJECT_PATH/build/build_dependencies/export_templates/export_templates.zip"
|
||||||
|
|
||||||
|
# Debug to see if the export templates were downloaded correctly
|
||||||
|
echo "Export templates downloaded to $PROJECT_PATH/build/build_dependencies/export_templates/"
|
||||||
|
ls -la "$PROJECT_PATH/build/build_dependencies/export_templates/"
|
||||||
|
|
||||||
|
- name: Upload Prepared Assets
|
||||||
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: prepared-assets
|
||||||
|
path: |
|
||||||
|
game/scripts/version_info.gd
|
||||||
|
build/build_dependencies/export_templates/
|
||||||
|
|
||||||
export-windows:
|
export-windows:
|
||||||
name: Windows Export
|
name: Windows Export
|
||||||
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
||||||
|
needs: prepare-build
|
||||||
container:
|
container:
|
||||||
image: barichello/godot-ci:mono-4.4.1 # change to mono
|
image: barichello/godot-ci:mono-4.4.1 # change to mono
|
||||||
steps:
|
steps:
|
||||||
@ -33,235 +109,202 @@ jobs:
|
|||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- name: Setup
|
|
||||||
|
- name: Download Prepared Assets
|
||||||
|
uses: https://gitea.com/actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: prepared-assets
|
||||||
|
path: .
|
||||||
|
|
||||||
|
- name: Windows Build
|
||||||
run: |
|
run: |
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/
|
mkdir -v -p build/bin/windows
|
||||||
mkdir -v -p ~/.config/
|
EXPORT_DIR="$(readlink -f build/bin)"
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
||||||
|
|
||||||
# Update the version_text.gd file with info about this build.
|
- name: Upload Artifact
|
||||||
# If it isn't in the expected spot of game/scripts/version_text.gd skip it
|
uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
||||||
- name: Populate Version Text
|
with:
|
||||||
|
name: windows
|
||||||
|
path: build/bin/windows
|
||||||
|
|
||||||
|
export-linux:
|
||||||
|
name: Linux Export
|
||||||
|
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
||||||
|
needs: prepare-build
|
||||||
|
container:
|
||||||
|
image: barichello/godot-ci:mono-4.4.1 # change to mono
|
||||||
|
steps:
|
||||||
|
# Doing this becuase barichello/godot-ci:4.4 doesn't have nodejs installed, may need to make own docker image in the future
|
||||||
|
# By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
||||||
|
- name: Install Node.js
|
||||||
run: |
|
run: |
|
||||||
VERSION_FILE="${PROJECT_PATH}/game/scripts/version_text.gd"
|
apt-get update
|
||||||
if [ -f "$VERSION_FILE" ]; then
|
apt-get install -y curl
|
||||||
PROJECT_NAME="${EXPORT_NAME}"
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
COMMIT_NUMBER="${GITHUB_RUN_NUMBER}"
|
apt-get install -y nodejs
|
||||||
BRANCH_NAME="${GITHUB_REF_NAME}"
|
|
||||||
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
|
|
||||||
|
|
||||||
sed -i "s/var project_name: String = \"X\"/var project_name: String = \"${PROJECT_NAME}\"/" "$VERSION_FILE"
|
|
||||||
sed -i "s/var commit_number: int = 0/var commit_number: int = ${COMMIT_NUMBER}/" "$VERSION_FILE"
|
|
||||||
sed -i "s/var branch_name: String = \"X\"/var branch_name: String = \"${BRANCH_NAME}\"/" "$VERSION_FILE"
|
|
||||||
sed -i "s/var short_sha: String = \"X\"/var short_sha: String = \"${SHORT_SHA}\"/" "$VERSION_FILE"
|
|
||||||
sed -i "s/var build_override: bool = false/var build_override: bool = true/" "$VERSION_FILE"
|
|
||||||
|
|
||||||
echo "Updated version_text.gd:"
|
|
||||||
cat "$VERSION_FILE"
|
|
||||||
else
|
|
||||||
echo "version_text.gd not found at $VERSION_FILE, skipping."
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Download Export Templates
|
- name: Checkout
|
||||||
run: |
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
# Download from zip from ${{ secrets.EXPORT_TEMPLATE_DOWNLOAD_LINK }}
|
with:
|
||||||
# Unzip downloaded file to $PROJECT_PATH/build/build_dependencies/export_templates/
|
lfs: true
|
||||||
# If the directory doesn't exist, create it
|
|
||||||
|
|
||||||
if [ -z "${{ secrets.EXPORT_TEMPLATE_DOWNLOAD_LINK }}" ]; then
|
- name: Download Prepared Assets
|
||||||
echo "No export template download link provided, cancelling build"
|
uses: https://gitea.com/actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: prepared-assets
|
||||||
|
path: .
|
||||||
|
|
||||||
|
- name: Linux Build
|
||||||
|
run: |
|
||||||
|
mkdir -v -p build/bin/linux
|
||||||
|
EXPORT_DIR="$(readlink -f build/bin)"
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
||||||
|
with:
|
||||||
|
name: linux
|
||||||
|
path: build/bin/linux
|
||||||
|
|
||||||
|
steam-publish:
|
||||||
|
name: Steam Publish
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
needs: [export-windows, export-linux]
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# Ensure steam info is provided
|
||||||
|
- name: Check Gitea Variables
|
||||||
|
run: |
|
||||||
|
if [ -z "${{ vars.STEAM_BUILD_USERNAME }}" ]; then
|
||||||
|
echo "No Steam Username variable, cancelling build"
|
||||||
|
echo "Please set the STEAM_BUILD_USERNAME variable in Gitea"
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Found STEAM_BUILD_USERNAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$PROJECT_PATH/build/build_dependencies/export_templates"
|
|
||||||
curl -L "${{ secrets.EXPORT_TEMPLATE_DOWNLOAD_LINK }}" -o "$PROJECT_PATH/build/build_dependencies/export_templates/export_templates.zip"
|
|
||||||
unzip -o "$PROJECT_PATH/build/build_dependencies/export_templates/export_templates.zip" -d "$PROJECT_PATH/build/build_dependencies/export_templates/"
|
|
||||||
rm "$PROJECT_PATH/build/build_dependencies/export_templates/export_templates.zip"
|
|
||||||
|
|
||||||
# Debug to see if the export templates were downloaded correctly
|
if [ -z "${{ secrets.STEAM_BUILD_PASSWORD }}" ]; then
|
||||||
ls -la "$PROJECT_PATH/build/build_dependencies/export_templates/"
|
echo "No Steam Password secret, cancelling build"
|
||||||
|
echo "Please set the STEAM_BUILD_PASSWORD secret in Gitea"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Found STEAM_BUILD_PASSWORD"
|
||||||
|
fi
|
||||||
|
|
||||||
# - name: Windows Build
|
if [ -z "${{ secrets.STEAM_GUARD_CODE }}" ]; then
|
||||||
# run: |
|
echo "No Steam Guard Code secret, cancelling build"
|
||||||
# mkdir -v -p build/bin/windows
|
echo "Please set the STEAM_GUARD_CODE secret in Gitea"
|
||||||
# EXPORT_DIR="$(readlink -f build/bin)"
|
exit 1
|
||||||
# cd $PROJECT_PATH
|
else
|
||||||
# godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
|
echo "Found STEAM_GUARD_CODE"
|
||||||
|
fi
|
||||||
|
|
||||||
# - name: Upload Artifact
|
# I can't use the c2msnetwork/steamcmd bc I need to instlal git and nodejs for the actions/checkout@v4 to work
|
||||||
# uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
# and I would need root access to install them, which root breaks saving the cache file
|
||||||
# with:
|
# So here we setup the dependencies for the missing steamcmd image, nodejs, and git manually
|
||||||
# name: windows
|
- name: Install Dependencies
|
||||||
# path: build/bin/windows
|
run: |
|
||||||
|
sudo dpkg --add-architecture i386
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
lib32gcc-s1 \
|
||||||
|
lib32stdc++6 \
|
||||||
|
curl \
|
||||||
|
nodejs \
|
||||||
|
git \
|
||||||
|
git-lfs
|
||||||
|
git lfs install
|
||||||
|
|
||||||
|
# Get the file from the link and put it in the required directory
|
||||||
|
- name: Setup SteamCMD
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/steamcmd
|
||||||
|
curl -fsSL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar xvzf - -C ~/steamcmd
|
||||||
|
# Run once to initialize
|
||||||
|
~/steamcmd/steamcmd.sh +quit
|
||||||
|
|
||||||
# export-linux:
|
# Get all the files from the repo into the working directory
|
||||||
# name: Linux Export
|
- name: Checkout
|
||||||
# runs-on: ubuntu-22.04 # Use 22.04 with godot 4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
# container:
|
with:
|
||||||
# image: barichello/godot-ci:4.4
|
lfs: true
|
||||||
# steps:
|
|
||||||
# # Doing this becuase barichello/godot-ci:4.4 doesn't have nodejs installed, may need to make own docker image in the future
|
# Download artifacts, this isn't done automatially like it was in gitlab
|
||||||
# # By default ubuntu-22.04 has nodejs 12, but we need a more modern version for the actions/checkout@v4
|
- name: Download Windows Artifacts
|
||||||
# - name: Install Node.js
|
uses: https://gitea.com/actions/download-artifact@v3
|
||||||
# run: |
|
with:
|
||||||
# apt-get update
|
name: windows
|
||||||
# apt-get install -y curl
|
path: build/bin/windows
|
||||||
# curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
|
||||||
# apt-get install -y nodejs
|
- name: Download Linux Artifacts
|
||||||
|
uses: https://gitea.com/actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: linux
|
||||||
|
path: build/bin/linux
|
||||||
|
|
||||||
|
# The normal actions/cache@v3 doesn't work here, so need to manully restore the cache in this step
|
||||||
|
# The only file we need is the config.vdf file for the steam gaurd code
|
||||||
|
|
||||||
|
# If the file doesn't exist, the steam upload will fail and request a new steam guard code.
|
||||||
|
# After a successful upload, the config.vdf file will be created and saved in the cache for future runs
|
||||||
|
- name: Restore Cache
|
||||||
|
uses: https://gitea.com/actions/cache/restore@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/Steam/config/config.vdf
|
||||||
|
./steam_build_output/
|
||||||
|
key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
|
||||||
|
restore-keys: |
|
||||||
|
steam-cache-${{ runner.os }}
|
||||||
|
steam-cache
|
||||||
|
|
||||||
|
# Debug to see if cache file exists
|
||||||
|
- name: Debug Pre-Cache
|
||||||
|
run: |
|
||||||
|
echo "Checking for cached config file in :~/Steam/config/config.vdf"
|
||||||
|
if [ -f ~/Steam/config/config.vdf ]; then
|
||||||
|
echo "config.vdf exists!"
|
||||||
|
ls -la ~/Steam/config/config.vdf
|
||||||
|
else
|
||||||
|
echo "No cached config.vdf file."
|
||||||
|
fi
|
||||||
|
|
||||||
# - name: Checkout
|
# Update the vdf with steam description from build info
|
||||||
# uses: https://gitea.com/actions/checkout@v4
|
- name: Update VDF
|
||||||
# with:
|
run: |
|
||||||
# lfs: true
|
cd $PROJECT_PATH
|
||||||
|
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
|
||||||
|
sed -i -e "s/STEAM_DESCRIPTION/${GITHUB_REF_NAME} - ${SHORT_SHA}/" build/build_dependencies/steam/app_build_2739610.vdf
|
||||||
|
|
||||||
# - name: Setup
|
# There is a chacne that if you fail enough uplaods, steam will rate limit you.
|
||||||
# run: |
|
# But to get a new steamguard code, you need to fail at least once to get the emial with the code
|
||||||
# mkdir -v -p ~/.local/share/godot/export_templates/
|
# The ratelimit time isn't published, but I saw in a reddit commit that its 30 minutes, but if you fail in that 30 mintues, it resets the timer
|
||||||
|
# Waiting 30 mintues worked for me, idk if that supersition is real or not :)
|
||||||
|
- name: Publish to Steam
|
||||||
|
run: |
|
||||||
|
cd $PROJECT_PATH
|
||||||
|
|
||||||
|
~/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build/build_dependencies/steam/app_build_2739610.vdf" +quit
|
||||||
|
|
||||||
# # Update the version_text.gd file with info about this build.
|
# Sanity check make sure file exists
|
||||||
# # If it isn't in the expected spot of game/scripts/version_text.gd skip it
|
- name: Debug Post-Cache
|
||||||
# - name: Populate Version Text
|
run: |
|
||||||
# run: |
|
echo "Checking for config file in :~/Steam/config/config.vdf"
|
||||||
# VERSION_FILE="${PROJECT_PATH}/game/scripts/version_text.gd"
|
if [ -f ~/Steam/config/config.vdf ]; then
|
||||||
# if [ -f "$VERSION_FILE" ]; then
|
echo "File exists!"
|
||||||
# PROJECT_NAME="${EXPORT_NAME}"
|
ls -la ~/Steam/config/config.vdf
|
||||||
# COMMIT_NUMBER="${GITHUB_RUN_NUMBER}"
|
else
|
||||||
# BRANCH_NAME="${GITHUB_REF_NAME}"
|
echo "No file found."
|
||||||
# SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
|
fi
|
||||||
|
|
||||||
# sed -i "s/var project_name: String = \"X\"/var project_name: String = \"${PROJECT_NAME}\"/" "$VERSION_FILE"
|
# Manually save the cache file, normal method doesn't work
|
||||||
# sed -i "s/var commit_number: int = 0/var commit_number: int = ${COMMIT_NUMBER}/" "$VERSION_FILE"
|
- name: Save Cache
|
||||||
# sed -i "s/var branch_name: String = \"X\"/var branch_name: String = \"${BRANCH_NAME}\"/" "$VERSION_FILE"
|
uses: https://gitea.com/actions/cache/save@v3
|
||||||
# sed -i "s/var short_sha: String = \"X\"/var short_sha: String = \"${SHORT_SHA}\"/" "$VERSION_FILE"
|
with:
|
||||||
# sed -i "s/var build_override: bool = false/var build_override: bool = true/" "$VERSION_FILE"
|
path: |
|
||||||
|
~/Steam/config/config.vdf
|
||||||
# echo "Updated version_text.gd:"
|
./steam_build_output/
|
||||||
# cat "$VERSION_FILE"
|
key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
|
||||||
# else
|
|
||||||
# echo "version_text.gd not found at $VERSION_FILE, skipping."
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# - name: Linux Build
|
|
||||||
# run: |
|
|
||||||
# mkdir -v -p build/bin/linux
|
|
||||||
# EXPORT_DIR="$(readlink -f build/bin)"
|
|
||||||
# cd $PROJECT_PATH
|
|
||||||
# godot --headless --verbose --export-release "Linux" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
|
|
||||||
|
|
||||||
# - name: Upload Artifact
|
|
||||||
# uses: https://gitea.com/actions/upload-artifact@v3 # using v3 ad v4 has issues wwith gitea
|
|
||||||
# with:
|
|
||||||
# name: linux
|
|
||||||
# path: build/bin/linux
|
|
||||||
|
|
||||||
# steam-publish:
|
|
||||||
# name: Steam Publish
|
|
||||||
# runs-on: ubuntu-22.04
|
|
||||||
# needs: [export-windows, export-linux]
|
|
||||||
# steps:
|
|
||||||
# # I can't use the c2msnetwork/steamcmd bc I need to instlal git and nodejs for the actions/checkout@v4 to work
|
|
||||||
# # and I would need root access to install them, which breaks saving the cache file
|
|
||||||
# # So here we setup the dependencies for the missing steamcmd image, nodejs, and git manually
|
|
||||||
# - name: Install Dependencies
|
|
||||||
# run: |
|
|
||||||
# sudo dpkg --add-architecture i386
|
|
||||||
# sudo apt-get update
|
|
||||||
# sudo apt-get install -y --no-install-recommends \
|
|
||||||
# lib32gcc-s1 \
|
|
||||||
# lib32stdc++6 \
|
|
||||||
# curl \
|
|
||||||
# nodejs \
|
|
||||||
# git \
|
|
||||||
# git-lfs
|
|
||||||
# git lfs install
|
|
||||||
|
|
||||||
# # Get the file from the link and put it in the required directory
|
|
||||||
# - name: Setup SteamCMD
|
|
||||||
# run: |
|
|
||||||
# mkdir -p ~/steamcmd
|
|
||||||
# curl -fsSL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar xvzf - -C ~/steamcmd
|
|
||||||
# # Run once to initialize
|
|
||||||
# ~/steamcmd/steamcmd.sh +quit
|
|
||||||
|
|
||||||
# # Get all the files from the repo into the working directory
|
|
||||||
# - name: Checkout
|
|
||||||
# uses: https://gitea.com/actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# lfs: true
|
|
||||||
|
|
||||||
# # Download artifacts, this isn't done automatially like it was in gitlab
|
|
||||||
# - name: Download Windows Artifacts
|
|
||||||
# uses: https://gitea.com/actions/download-artifact@v3
|
|
||||||
# with:
|
|
||||||
# name: windows
|
|
||||||
# path: build/bin/windows
|
|
||||||
|
|
||||||
# - name: Download Linux Artifacts
|
|
||||||
# uses: https://gitea.com/actions/download-artifact@v3
|
|
||||||
# with:
|
|
||||||
# name: linux
|
|
||||||
# path: build/bin/linux
|
|
||||||
|
|
||||||
# # The normal actions/cache@v3 doesn't work here, so need to manully restore the cache in this step
|
|
||||||
# # The only file we need is the config.vdf file for the steam gaurd code
|
|
||||||
|
|
||||||
# # If the file doesn't exist, the steam upload will fail and request a new steam guard code.
|
|
||||||
# # After a successful upload, the config.vdf file will be created and saved in the cache for future runs
|
|
||||||
# - name: Restore Cache
|
|
||||||
# uses: https://gitea.com/actions/cache/restore@v3
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/Steam/config/config.vdf
|
|
||||||
# ./steam_build_output/
|
|
||||||
# key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
|
|
||||||
# restore-keys: |
|
|
||||||
# steam-cache-${{ runner.os }}
|
|
||||||
# steam-cache
|
|
||||||
|
|
||||||
# # Debug to see if cache file exists
|
|
||||||
# - name: Debug Pre-Cache
|
|
||||||
# run: |
|
|
||||||
# echo "Checking for cached config file in :~/Steam/config/config.vdf"
|
|
||||||
# if [ -f ~/Steam/config/config.vdf ]; then
|
|
||||||
# echo "config.vdf exists!"
|
|
||||||
# ls -la ~/Steam/config/config.vdf
|
|
||||||
# else
|
|
||||||
# echo "No cached config.vdf file."
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# # Update the vdf with steam description from build info
|
|
||||||
# - name: Update VDF
|
|
||||||
# run: |
|
|
||||||
# cd $PROJECT_PATH
|
|
||||||
# SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
|
|
||||||
# sed -i -e "s/STEAM_DESCRIPTION/${GITHUB_REF_NAME} - ${SHORT_SHA}/" build/build_dependencies/steam/app_build_2739610.vdf
|
|
||||||
|
|
||||||
# # There is a chacne that if you fail enough uplaods, steam will rate limit you.
|
|
||||||
# # But to get a new steamguard code, you need to fail at least once to get the emial with the code
|
|
||||||
# # The ratelimit time isn't published, but I saw in a reddit commit that its 30 minutes, but if you fail in that 30 mintues, it resets the timer
|
|
||||||
# # Waiting 30 mintues worked for me, idk if that supersition is real or not :)
|
|
||||||
# - name: Publish to Steam
|
|
||||||
# run: |
|
|
||||||
# cd $PROJECT_PATH
|
|
||||||
|
|
||||||
# ~/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build/build_dependencies/steam/app_build_2739610.vdf" +quit
|
|
||||||
|
|
||||||
# # Sanitys check make sure file exists
|
|
||||||
# - name: Debug Post-Cache
|
|
||||||
# run: |
|
|
||||||
# echo "Checking for config file in :~/Steam/config/config.vdf"
|
|
||||||
# if [ -f ~/Steam/config/config.vdf ]; then
|
|
||||||
# echo "File exists!"
|
|
||||||
# ls -la ~/Steam/config/config.vdf
|
|
||||||
# else
|
|
||||||
# echo "No file found."
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# # Manually save the cache file, normal method doesn't work
|
|
||||||
# - name: Save Cache
|
|
||||||
# uses: https://gitea.com/actions/cache/save@v3
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/Steam/config/config.vdf
|
|
||||||
# ./steam_build_output/
|
|
||||||
# key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
|
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@ -2,5 +2,5 @@
|
|||||||
.godot/
|
.godot/
|
||||||
/android/
|
/android/
|
||||||
|
|
||||||
build/bin/linux/*
|
build/bin/*
|
||||||
build/bin/windows/*
|
build/build_dependencies/export_templates/*
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=6 format=3 uid="uid://bgpec3avuotkt"]
|
[gd_scene load_steps=7 format=3 uid="uid://bgpec3avuotkt"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dlna6j58fshxu" path="res://game/scripts/version_label.gd" id="1_iapjp"]
|
[ext_resource type="Script" uid="uid://dlna6j58fshxu" path="res://game/scripts/version_label.gd" id="1_iapjp"]
|
||||||
|
|
||||||
@ -21,6 +21,8 @@ glow_enabled = true
|
|||||||
|
|
||||||
[sub_resource type="TorusMesh" id="TorusMesh_no5d7"]
|
[sub_resource type="TorusMesh" id="TorusMesh_no5d7"]
|
||||||
|
|
||||||
|
[sub_resource type="SphereMesh" id="SphereMesh_iapjp"]
|
||||||
|
|
||||||
[node name="Node3D" type="Node3D"]
|
[node name="Node3D" type="Node3D"]
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
@ -35,6 +37,10 @@ environment = SubResource("Environment_8n7uv")
|
|||||||
transform = Transform3D(0.9115, 0.389701, -0.131534, 0.290076, -0.382369, 0.877297, 0.291589, -0.837811, -0.461572, 0.24582, 0, 0)
|
transform = Transform3D(0.9115, 0.389701, -0.131534, 0.290076, -0.382369, 0.877297, 0.291589, -0.837811, -0.461572, 0.24582, 0, 0)
|
||||||
mesh = SubResource("TorusMesh_no5d7")
|
mesh = SubResource("TorusMesh_no5d7")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D4" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(0.9115, 0.389701, -0.131534, 0.290076, -0.382369, 0.877297, 0.291589, -0.837811, -0.461572, 0.504088, -0.133605, -0.349527)
|
||||||
|
mesh = SubResource("SphereMesh_iapjp")
|
||||||
|
|
||||||
[node name="Camera3D" type="Camera3D" parent="."]
|
[node name="Camera3D" type="Camera3D" parent="."]
|
||||||
transform = Transform3D(-0.998152, 0, -0.0607699, 0, 1, 0, 0.0607699, 0, -0.998152, 0, 0, -2.11699)
|
transform = Transform3D(-0.998152, 0, -0.0607699, 0, 1, 0, 0.0607699, 0, -0.998152, 0, 0, -2.11699)
|
||||||
|
|
||||||
@ -51,3 +57,5 @@ layout_mode = 0
|
|||||||
offset_right = 40.0
|
offset_right = 40.0
|
||||||
offset_bottom = 23.0
|
offset_bottom = 23.0
|
||||||
script = ExtResource("1_iapjp")
|
script = ExtResource("1_iapjp")
|
||||||
|
minor_version = 1
|
||||||
|
patch = 3
|
||||||
|
|||||||
@ -9,7 +9,7 @@ custom_features=""
|
|||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter=""
|
||||||
export_path="build/bin/windows/videogame.exe"
|
export_path=""
|
||||||
patches=PackedStringArray()
|
patches=PackedStringArray()
|
||||||
encryption_include_filters=""
|
encryption_include_filters=""
|
||||||
encryption_exclude_filters=""
|
encryption_exclude_filters=""
|
||||||
@ -33,7 +33,7 @@ codesign/timestamp_server_url=""
|
|||||||
codesign/digest_algorithm=1
|
codesign/digest_algorithm=1
|
||||||
codesign/description=""
|
codesign/description=""
|
||||||
codesign/custom_options=PackedStringArray()
|
codesign/custom_options=PackedStringArray()
|
||||||
application/modify_resources=false
|
application/modify_resources=true
|
||||||
application/icon=""
|
application/icon=""
|
||||||
application/console_wrapper_icon=""
|
application/console_wrapper_icon=""
|
||||||
application/icon_interpolation=4
|
application/icon_interpolation=4
|
||||||
@ -79,7 +79,7 @@ custom_features=""
|
|||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter=""
|
||||||
export_path="build/bin/linux/videogame.x86_64"
|
export_path=""
|
||||||
patches=PackedStringArray()
|
patches=PackedStringArray()
|
||||||
encryption_include_filters=""
|
encryption_include_filters=""
|
||||||
encryption_exclude_filters=""
|
encryption_exclude_filters=""
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
class_name VersionText extends Label
|
class_name VersionInfo extends Label
|
||||||
|
|
||||||
var project_name: String = "X"
|
var project_name: String = "X"
|
||||||
var commit_number: int = 0
|
var commit_number: int = 0
|
||||||
@ -1,4 +1,4 @@
|
|||||||
extends VersionText
|
extends VersionInfo
|
||||||
|
|
||||||
|
|
||||||
@export var show_label_in_editor: bool = true
|
@export var show_label_in_editor: bool = true
|
||||||
|
|||||||
Reference in New Issue
Block a user