Skip to content

Commit

Permalink
improving GH-3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord of Scripts committed Aug 28, 2024
1 parent 37c26eb commit 0f46829
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/crossbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,20 @@ jobs:
- 'linux/arm'
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22.1'
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Get OS and arch info
run: |
GOOSARCH=${{matrix.goosarch}}
GOOS=${GOOSARCH%/*}
GOARCH=${GOOSARCH#*/}
BINARY_NAME=${{github.repository}}-$GOOS-$GOARCH
APPVERSION=${{ steps.get_version.outputs.VERSION }}
BINARY_NAME=${{github.repository}}-$GOOS-$GOARCH-$APPVERSION
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV
echo "GOOS=$GOOS" >> $GITHUB_ENV
echo "GOARCH=$GOARCH" >> $GITHUB_ENV
Expand Down

0 comments on commit 0f46829

Please sign in to comment.