diff --git a/.github/workflows/steamos_alpha.yml b/.github/workflows/steamos_alpha.yml index 6fa4aee..daa94d0 100644 --- a/.github/workflows/steamos_alpha.yml +++ b/.github/workflows/steamos_alpha.yml @@ -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 diff --git a/build/steamos/README.md b/build/steamos/README.md index 1fbac9b..9d5f371 100644 --- a/build/steamos/README.md +++ b/build/steamos/README.md @@ -3,28 +3,24 @@ see https://partner.steamgames.com/doc/sdk/uploading#Build_Account -# buildmachine auth key - -go on a linux x86 machine: +# buildmachine auth key (on mac) ``` -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 +./builder_osx/steamcmd +login $STEAM_USR $STEAM_PWD +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: ``` +cp ~/Library/Application\ Support/Steam/config/config.vdf config.vdf cat config.vdf | gzip | base64 | pbcopy ``` -The gzipped and base64 encoded file is now in the clipboard and ready to be put into a CI secret. \ No newline at end of file +The gzipped and base64 encoded file is now in the clipboard and ready to be put into a CI secret.