Skip to content

Commit

Permalink
fix file names on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintWish committed Oct 5, 2024
1 parent 833bd70 commit a477ebe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
run: sudo apt-get -y install build-essential

- name: build
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o build/msnexus2_linux_amd64 -v .
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o build/nexus2_linux_amd64 -v .

- name: compress binary
run: upx build/msnexus2_linux_amd64 && chmod +x build/msnexus2_linux_amd64
run: upx build/nexus2_linux_amd64 && chmod +x build/nexus2_linux_amd64

- name: upload binaries
uses: actions/upload-artifact@v4
with:
name: linux_amd64
path: build/msnexus2_linux_amd64
path: build/nexus2_linux_amd64
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
- name: build
env:
REF: ${{ github.ref }}
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X github.com/msrevive/nexus2/internal/static.Version=${REF:11}" -o build/msnexus2_linux_amd64 -v .
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X github.com/msrevive/nexus2/internal/static.Version=${REF:11}" -o build/nexus2_linux_amd64 -v .

- name: compress binary
run: upx build/msnexus2_linux_amd64 && chmod +x build/msnexus2_linux_amd64
run: upx build/nexus2_linux_amd64 && chmod +x build/nexus2_linux_amd64

- name: copy runtime directory
run: cp -avr ./runtime/ ./build/

- name: tar release
run: tar -czvf ~/msnexus2.tar.gz build
run: tar -czvf ~/nexus2.tar.gz build

- name: extract changelog
env:
Expand All @@ -57,6 +57,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/msnexus2.tar.gz
asset_name: msnexus2.tar.gz
asset_path: /home/runner/nexus2.tar.gz
asset_name: nexus2.tar.gz
asset_content_type: application/octet-stream
6 changes: 3 additions & 3 deletions .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ jobs:
setx GOARCH amd64
- name: build
run: go build -ldflags="-s -w" -o build/nexus2_win -v .
run: go build -ldflags="-s -w" -o build/nexus2.exe -v .

- name: Install UPX
uses: crazy-max/ghaction-upx@v3
with:
install-only: true

- name: compress binary
run: upx build/nexus2_win
run: upx build/nexus2.exe

- name: upload binaries
uses: actions/upload-artifact@v4
with:
name: win_amd64
path: build/nexus2_win
path: build/nexus2.exe

0 comments on commit a477ebe

Please sign in to comment.