fix steams ci (#10)
This commit is contained in:
23
.github/workflows/steamos_alpha.yml
vendored
23
.github/workflows/steamos_alpha.yml
vendored
@@ -2,6 +2,7 @@ name: steamos-alpha
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Enables manual triggers
|
||||
# pull_request:
|
||||
|
||||
jobs:
|
||||
steamos-alpha:
|
||||
@@ -15,20 +16,19 @@ jobs:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
|
||||
- uses: mlugg/setup-zig@v1
|
||||
- name: "Install and cache dependencies (Linux)"
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
version: 0.13.0
|
||||
|
||||
packages: libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||
version: 1.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
|
||||
cargo build --locked --release --target=x86_64-unknown-linux-gnu
|
||||
|
||||
- name: Archive
|
||||
run: |
|
||||
@@ -56,14 +56,13 @@ jobs:
|
||||
- name: Steam Auth
|
||||
env:
|
||||
STEAM_CONFIG: ${{ secrets.STEAM_CONFIG_VDF_BASE64 }}
|
||||
STEAM_CONFIG_PATH: ~/Steam/config
|
||||
STEAM_CONFIG_PATH: ~/.steam/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
|
||||
echo "$STEAM_CONFIG" | base64 -d | gunzip > $STEAM_CONFIG_PATH/config.vdf
|
||||
# Set proper permissions
|
||||
chmod 644 $STEAM_CONFIG_PATH/config.vdf
|
||||
ls -lisah $STEAM_CONFIG_PATH/config.vdf
|
||||
chmod 755 $STEAM_CONFIG_PATH/config.vdf
|
||||
|
||||
- name: Steam deploy
|
||||
env:
|
||||
@@ -78,4 +77,4 @@ jobs:
|
||||
uses: appleboy/discord-action@v1.2.0
|
||||
with:
|
||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
message: New HEDZ-Reloaded alpha version on Steam
|
||||
message: New HEDZ-Reloaded alpha
|
||||
|
||||
Reference in New Issue
Block a user