fix steams ci (#10)
This commit is contained in:
21
.github/workflows/steamos_alpha.yml
vendored
21
.github/workflows/steamos_alpha.yml
vendored
@@ -2,6 +2,7 @@ name: steamos-alpha
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Enables manual triggers
|
workflow_dispatch: # Enables manual triggers
|
||||||
|
# pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
steamos-alpha:
|
steamos-alpha:
|
||||||
@@ -15,20 +16,19 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
|
|
||||||
- uses: mlugg/setup-zig@v1
|
- name: "Install and cache dependencies (Linux)"
|
||||||
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
with:
|
with:
|
||||||
version: 0.13.0
|
packages: libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||||
|
version: 1.0
|
||||||
|
|
||||||
- uses: leafwing-studios/cargo-cache@v2
|
- uses: leafwing-studios/cargo-cache@v2
|
||||||
with:
|
with:
|
||||||
sweep-cache: true
|
sweep-cache: true
|
||||||
|
|
||||||
- name: Install cargo-zigbuild
|
|
||||||
run: cargo install cargo-zigbuild
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.27
|
cargo build --locked --release --target=x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
- name: Archive
|
- name: Archive
|
||||||
run: |
|
run: |
|
||||||
@@ -56,14 +56,13 @@ jobs:
|
|||||||
- name: Steam Auth
|
- name: Steam Auth
|
||||||
env:
|
env:
|
||||||
STEAM_CONFIG: ${{ secrets.STEAM_CONFIG_VDF_BASE64 }}
|
STEAM_CONFIG: ${{ secrets.STEAM_CONFIG_VDF_BASE64 }}
|
||||||
STEAM_CONFIG_PATH: ~/Steam/config
|
STEAM_CONFIG_PATH: ~/.steam/steam/config
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $STEAM_CONFIG_PATH
|
mkdir -p $STEAM_CONFIG_PATH
|
||||||
# Decode the base64 data and save it to the config location
|
# 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
|
# Set proper permissions
|
||||||
chmod 644 $STEAM_CONFIG_PATH/config.vdf
|
chmod 755 $STEAM_CONFIG_PATH/config.vdf
|
||||||
ls -lisah $STEAM_CONFIG_PATH/config.vdf
|
|
||||||
|
|
||||||
- name: Steam deploy
|
- name: Steam deploy
|
||||||
env:
|
env:
|
||||||
@@ -78,4 +77,4 @@ jobs:
|
|||||||
uses: appleboy/discord-action@v1.2.0
|
uses: appleboy/discord-action@v1.2.0
|
||||||
with:
|
with:
|
||||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
message: New HEDZ-Reloaded alpha version on Steam
|
message: New HEDZ-Reloaded alpha
|
||||||
|
|||||||
@@ -3,27 +3,23 @@
|
|||||||
|
|
||||||
see https://partner.steamgames.com/doc/sdk/uploading#Build_Account
|
see https://partner.steamgames.com/doc/sdk/uploading#Build_Account
|
||||||
|
|
||||||
# buildmachine auth key
|
# buildmachine auth key (on mac)
|
||||||
|
|
||||||
go on a linux x86 machine:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir ~/Steam && cd ~/Steam
|
./builder_osx/steamcmd +login $STEAM_USR $STEAM_PWD +quit
|
||||||
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
|
|
||||||
chmod +x ~/Steam/
|
|
||||||
~/Steam/steamcmd.sh +help +quit
|
|
||||||
```
|
```
|
||||||
|
|
||||||
now we have to login with out ci account:
|
verify credentials cached locally work:
|
||||||
|
|
||||||
```
|
```
|
||||||
~/Steam/steamcmd.sh +login USERNAME +quit
|
./builder_osx/steamcmd +login $STEAM_USR +quit
|
||||||
```
|
```
|
||||||
|
|
||||||
If succesfull this creates `~/Steam/config/config.vdf`.
|
If succesfull this creates `~/Library/Application\ Support/Steam/config/config.vdf`.
|
||||||
|
|
||||||
On a mac:
|
On a mac:
|
||||||
```
|
```
|
||||||
|
cp ~/Library/Application\ Support/Steam/config/config.vdf config.vdf
|
||||||
cat config.vdf | gzip | base64 | pbcopy
|
cat config.vdf | gzip | base64 | pbcopy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user