Use gobinaries.com to skip Go setup/install step

This commit is contained in:
2024-05-12 19:14:42 -05:00
parent 20bb5738f0
commit fab9e610a7

View File

@@ -28,16 +28,10 @@ jobs:
- name: Build Mod - name: Build Mod
run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore
- name: Setup Go environment
uses: actions/setup-go@v5.0.1
with:
go-version: stable
cache-dependency-path: .github/workflows/go.sum
- name: Get Version - name: Get Version
id: get_version id: get_version
run: | run: |
go install github.com/sibprogrammer/xq@latest curl -sf https://gobinaries.com/sibprogrammer/xq@latest | sh
VERSION=$(xq ./About/About.xml -x "/ModMetaData/modVersion") VERSION=$(xq ./About/About.xml -x "/ModMetaData/modVersion")
echo "result=$VERSION" >> $GITHUB_OUTPUT echo "result=$VERSION" >> $GITHUB_OUTPUT