@@ -33,52 +33,41 @@ jobs:
3333 permissions :
3434 contents : write
3535 statuses : write
36- env :
37- NUGET_PACKAGES : ${{ github.workspace }}/.nuget/packages
3836 steps :
3937
40- # Checkout and cache
38+ # Checkout and download tools
4139
4240 - name : Checkout shared GameTracking
43- id : checkout-gametracking
4441 uses : actions/checkout@v6
4542 with :
4643 fetch-depth : 1
4744 repository : ' SteamTracking/GameTracking'
4845
49- - name : Restore tools cache
50- id : cache
51- uses : actions/cache@v5
52- with :
53- path : |
54- ${{ github.workspace }}/tools/*
55- !${{ github.workspace }}/tools/build.sh
56- key : ${{ runner.os }}-tools-${{ steps.checkout-gametracking.outputs.commit }}
46+ - name : Download pre-built tools
47+ shell : bash
48+ run : |
49+ if [[ "$(uname -s)" == MINGW* ]] || [[ "$(uname -s)" == MSYS* ]]; then
50+ ARCHIVE="tools-win-x64.tar.gz"
51+ else
52+ ARCHIVE="tools-linux-x64.tar.gz"
53+ fi
54+
55+ gh release download tools \
56+ --repo SteamTracking/GameTracking \
57+ --pattern "$ARCHIVE" \
58+ --dir .
59+
60+ tar xzf "$ARCHIVE" -C tools/
61+ rm "$ARCHIVE"
62+ env :
63+ GH_TOKEN : ${{ github.token }}
5764
5865 - name : Checkout game repository (${{ github.repository }})
5966 uses : actions/checkout@v6
6067 with :
6168 fetch-depth : 1
6269 path : tracked_game
6370
64- - name : Setup Go
65- if : steps.cache.outputs.cache-hit != 'true'
66- uses : actions/setup-go@v6
67- with :
68- go-version : ' stable'
69- cache-dependency-path : tools/*/go.sum
70-
71- - name : Setup .NET
72- if : steps.cache.outputs.cache-hit != 'true'
73- uses : actions/setup-dotnet@v5
74- with :
75- dotnet-version : ' 10.x'
76-
77- - name : Build tools
78- if : steps.cache.outputs.cache-hit != 'true'
79- shell : bash
80- run : ./tools/build.sh
81-
8271 # Optional Node.js setup
8372
8473 - name : Check for package-lock.json
0 commit comments