only run steamos cd manually for now
This commit is contained in:
81
.github/workflows/steamos_alpha.yml
vendored
Normal file
81
.github/workflows/steamos_alpha.yml
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
name: steamos-alpha
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Enables manual triggers
|
||||
|
||||
jobs:
|
||||
steamos-alpha:
|
||||
runs-on: [self-hosted, linux]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
- uses: extractions/setup-just@v1
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
- uses: mlugg/setup-zig@v1
|
||||
with:
|
||||
version: 0.13.0
|
||||
|
||||
- uses: leafwing-studios/cargo-cache@v2
|
||||
with:
|
||||
sweep-cache: true
|
||||
|
||||
- name: Install cargo-zigbuild
|
||||
run: cargo install cargo-zigbuild
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.27
|
||||
|
||||
- name: Archive
|
||||
run: |
|
||||
cp target/x86_64-unknown-linux-gnu/release/hedz_reloaded hedz_reloaded
|
||||
tar -czf steamos.tar.gz hedz_reloaded
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: steamos.tar.gz
|
||||
path: ./steamos.tar.gz
|
||||
|
||||
- name: Copy Binary for SteamOS
|
||||
run: |
|
||||
mkdir -p build/steamos/content
|
||||
cp target/x86_64-unknown-linux-gnu/release/hedz_reloaded build/steamos/content/hedz_reloaded
|
||||
|
||||
- name: Install SteamCMD
|
||||
run: |
|
||||
sudo apt-get install lib32gcc-s1 -y
|
||||
mkdir ~/Steam && cd ~/Steam
|
||||
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
|
||||
chmod +x ~/Steam/
|
||||
~/Steam/steamcmd.sh +help +quit
|
||||
|
||||
- name: Steam Auth
|
||||
env:
|
||||
STEAM_CONFIG: ${{ secrets.STEAM_CONFIG_VDF_BASE64 }}
|
||||
STEAM_CONFIG_PATH: ~/Steam/config
|
||||
run: |
|
||||
mkdir -p $STEAM_CONFIG_PATH
|
||||
# Decode the base64 data and save it to the config location
|
||||
echo "$STEAM_CONFIG" | base64 --decode | gunzip > $STEAM_CONFIG_PATH/config.vdf
|
||||
# Set proper permissions
|
||||
chmod 644 $STEAM_CONFIG_PATH/config.vdf
|
||||
ls -lisah $STEAM_CONFIG_PATH/config.vdf
|
||||
|
||||
- name: Steam deploy
|
||||
env:
|
||||
# needs to be fully qualified path for steamcmd to find it
|
||||
DEPOT: ${{ github.workspace }}/build/steamos/scripts/hedz.vdf
|
||||
STEAM_USR: ${{ secrets.STEAM_USR }}
|
||||
run: |
|
||||
cd build/steamos
|
||||
~/Steam/steamcmd.sh +login $STEAM_USR +run_app_build $DEPOT +quit
|
||||
|
||||
- name: Discord notification
|
||||
uses: appleboy/discord-action@v1.2.0
|
||||
with:
|
||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
message: New HEDZ-Reloaded alpha version on Steam
|
||||
Reference in New Issue
Block a user