Trying to orginal steam docker image with cache debugs
Some checks failed
godot-ci export / Windows Export (push) Successful in 1m16s
godot-ci export / Linux Export (push) Successful in 1m16s
godot-ci export / Steam Publish (push) Failing after 1m2s

This commit is contained in:
2025-07-06 14:53:56 -07:00
parent ba43e870cd
commit 38db6486fc

View File

@ -83,100 +83,184 @@ jobs:
name: linux
path: build/bin/linux
steam-publish:
name: Steam Publish
runs-on: ubuntu-22.04
# The container is no longer needed
# container:
# image: cm2network/steamcmd:root
needs: [export-windows, export-linux]
steps:
- 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
# steam-publish:
# name: Steam Publish
# runs-on: ubuntu-22.04
# # The container is no longer needed
# # container:
# # image: cm2network/steamcmd:root
# needs: [export-windows, export-linux]
# steps:
# - 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
- 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
# - 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
- name: Checkout
uses: https://gitea.com/actions/checkout@v4
with:
lfs: true
# - 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
# # 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
# - name: Download Linux Artifacts
# uses: https://gitea.com/actions/download-artifact@v3
# with:
# name: linux
# path: build/bin/linux
- 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
# - 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
- name: Read Cache
run: |
# The Read Cache step is now handled by the actions/cache@v3 restore process.
# This step can be removed or left for debugging.
echo "Files in steamcmd directory:"
ls -la ~/Steam/config/config.vdf
# - name: Read Cache
# run: |
# # The Read Cache step is now handled by the actions/cache@v3 restore process.
# # This step can be removed or left for debugging.
# echo "Files in steamcmd directory:"
# ls -la ~/Steam/config/config.vdf
- 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
# - 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
- name: Publish to Steam
run: |
cd $PROJECT_PATH
# - 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
# ~/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
- name: Write Cache
run: |
# The Write Cache step is now handled by the actions/cache@v3 save process.
# This step can be removed or left for debugging.
echo "Files in steamcmd directory to be cached:"
ls -la ~/
echo "Files in steamcmd directory:"
ls -la ~/steamcmd/
echo "Files in steam directory:"
ls -la ~/Steam/
echo "Files in steam config directory:"
ls -la ~/Steam/config
# - name: Write Cache
# run: |
# # The Write Cache step is now handled by the actions/cache@v3 save process.
# # This step can be removed or left for debugging.
# echo "Files in steamcmd directory to be cached:"
# ls -la ~/
# echo "Files in steamcmd directory:"
# ls -la ~/steamcmd/
# echo "Files in steam directory:"
# ls -la ~/Steam/
# echo "Files in steam config directory:"
# ls -la ~/Steam/config
# TODO save the Steam/config/config.vdf file to the cache
- 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 }}
# - 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 }}
steam-publish:
name: Steam Publish
runs-on: ubuntu-22.04
container:
image: cm2network/steamcmd:root
needs: [export-windows, export-linux]
steps:
# Need to install nodejs and git, and initalize git lfs for checkout
- name: Install node.js and git
run: |
apt-get update
apt-get install -y curl
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y nodejs git git-lfs
git lfs install
- 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
- 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
- name: Debug Pre-Cache
run: |
# The Read Cache step is now handled by the actions/cache@v3 restore process.
# This step can be removed or left for debugging.
echo "Files in steamcmd directory:"
ls -la ~/Steam/config/config.vdf
- 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
- 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
- name: Debug Post-Cache
run: |
# The Write Cache step is now handled by the actions/cache@v3 save process.
# This step can be removed or left for debugging.
echo "Files in steamcmd directory to be cached:"
ls -la ~/
echo "Files in steamcmd directory:"
ls -la ~/steamcmd/
echo "Files in steam directory:"
ls -la ~/Steam/
echo "Files in steam config directory:"
ls -la ~/Steam/config
- 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 }}