diff --git a/.github/workflows/steam.yml b/.github/workflows/steam.yml index 20ed2370e..94c112e85 100644 --- a/.github/workflows/steam.yml +++ b/.github/workflows/steam.yml @@ -8,7 +8,6 @@ jobs: runs-on: ubuntu-latest env: DISPLAY: ':99.0' - GO_VERSION: '1.19' defaults: run: shell: bash @@ -28,10 +27,15 @@ jobs: curl --location --remote-name https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-public-beta/com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.tar.gz docker build -f com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.Dockerfile -t steamrt_scout_amd64:latest . + - name: Go version + id: go + run: | + echo "::set-output name=version::$(curl --location https://go.dev/VERSION?m=text)" + - name: Docker run (386) run: | - docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=go${GO_VERSION}.linux-386.tar.gz steamrt_scout_i386:latest /bin/sh .github/workflows/steam.sh + docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=${{ steps.go.outputs.version }}.linux-386.tar.gz steamrt_scout_i386:latest /bin/sh .github/workflows/steam.sh - name: Docker run (amd64) run: | - docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=go${GO_VERSION}.linux-amd64.tar.gz steamrt_scout_amd64:latest /bin/sh .github/workflows/steam.sh + docker run --rm --workdir=/work --volume $(pwd):/work --env GO_FILENAME=${{ steps.go.outputs.version }}.linux-amd64.tar.gz steamrt_scout_amd64:latest /bin/sh .github/workflows/steam.sh