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 name: linux
path: build/bin/linux path: build/bin/linux
steam-publish: # steam-publish:
name: Steam Publish # name: Steam Publish
runs-on: ubuntu-22.04 # runs-on: ubuntu-22.04
# The container is no longer needed # # The container is no longer needed
# container: # # container:
# image: cm2network/steamcmd:root # # image: cm2network/steamcmd:root
needs: [export-windows, export-linux] # needs: [export-windows, export-linux]
steps: # steps:
- name: Install Dependencies # - name: Install Dependencies
run: | # run: |
sudo dpkg --add-architecture i386 # sudo dpkg --add-architecture i386
sudo apt-get update # sudo apt-get update
sudo apt-get install -y --no-install-recommends \ # sudo apt-get install -y --no-install-recommends \
lib32gcc-s1 \ # lib32gcc-s1 \
lib32stdc++6 \ # lib32stdc++6 \
curl \ # curl \
nodejs \ # nodejs \
git \ # git \
git-lfs # git-lfs
git lfs install # git lfs install
- name: Setup SteamCMD # - name: Setup SteamCMD
run: | # run: |
mkdir -p ~/steamcmd # mkdir -p ~/steamcmd
curl -fsSL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar xvzf - -C ~/steamcmd # curl -fsSL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar xvzf - -C ~/steamcmd
# Run once to initialize # # Run once to initialize
~/steamcmd/steamcmd.sh +quit # ~/steamcmd/steamcmd.sh +quit
- name: Checkout # - name: Checkout
uses: https://gitea.com/actions/checkout@v4 # uses: https://gitea.com/actions/checkout@v4
with: # with:
lfs: true # lfs: true
# Download artifacts, this isn't done automatially like it was in gitlab # # Download artifacts, this isn't done automatially like it was in gitlab
- name: Download Windows Artifacts # - name: Download Windows Artifacts
uses: https://gitea.com/actions/download-artifact@v3 # uses: https://gitea.com/actions/download-artifact@v3
with: # with:
name: windows # name: windows
path: build/bin/windows # path: build/bin/windows
- name: Download Linux Artifacts # - name: Download Linux Artifacts
uses: https://gitea.com/actions/download-artifact@v3 # uses: https://gitea.com/actions/download-artifact@v3
with: # with:
name: linux # name: linux
path: build/bin/linux # path: build/bin/linux
- name: Restore Cache # - name: Restore Cache
uses: https://gitea.com/actions/cache/restore@v3 # uses: https://gitea.com/actions/cache/restore@v3
with: # with:
path: | # path: |
~/Steam/config/config.vdf # ~/Steam/config/config.vdf
./steam_build_output/ # ./steam_build_output/
key: steam-cache-${{ runner.os }}-${{ github.ref_name }} # key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
restore-keys: | # restore-keys: |
steam-cache-${{ runner.os }} # steam-cache-${{ runner.os }}
steam-cache # steam-cache
- name: Read Cache # - name: Read Cache
run: | # run: |
# The Read Cache step is now handled by the actions/cache@v3 restore process. # # The Read Cache step is now handled by the actions/cache@v3 restore process.
# This step can be removed or left for debugging. # # This step can be removed or left for debugging.
echo "Files in steamcmd directory:" # echo "Files in steamcmd directory:"
ls -la ~/Steam/config/config.vdf # ls -la ~/Steam/config/config.vdf
- name: Update VDF # - name: Update VDF
run: | # run: |
cd $PROJECT_PATH # cd $PROJECT_PATH
SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-8) # 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 # sed -i -e "s/STEAM_DESCRIPTION/${GITHUB_REF_NAME} - ${SHORT_SHA}/" build/build_dependencies/steam/app_build_2739610.vdf
- name: Publish to Steam # - name: Publish to Steam
run: | # run: |
cd $PROJECT_PATH # 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 # - name: Write Cache
run: | # run: |
# The Write Cache step is now handled by the actions/cache@v3 save process. # # The Write Cache step is now handled by the actions/cache@v3 save process.
# This step can be removed or left for debugging. # # This step can be removed or left for debugging.
echo "Files in steamcmd directory to be cached:" # echo "Files in steamcmd directory to be cached:"
ls -la ~/ # ls -la ~/
echo "Files in steamcmd directory:" # echo "Files in steamcmd directory:"
ls -la ~/steamcmd/ # ls -la ~/steamcmd/
echo "Files in steam directory:" # echo "Files in steam directory:"
ls -la ~/Steam/ # ls -la ~/Steam/
echo "Files in steam config directory:" # echo "Files in steam config directory:"
ls -la ~/Steam/config # ls -la ~/Steam/config
# TODO save the Steam/config/config.vdf file to the cache # - name: Save Cache
- name: Save Cache # uses: https://gitea.com/actions/cache/save@v3
uses: https://gitea.com/actions/cache/save@v3 # with:
with: # path: |
path: | # ~/Steam/config/config.vdf
~/Steam/config/config.vdf # ./steam_build_output/
./steam_build_output/ # key: steam-cache-${{ runner.os }}-${{ github.ref_name }}
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 }}