Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
orestonce committed Aug 14, 2024
1 parent 5fd69be commit 44683c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/push-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,44 +37,37 @@ jobs:
$env:GOOS=‘windows’
$env:GOARCH='386'
go mod tidy
go build -o bin/ChessGame_windows_386 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_windows_386 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_windows_386 github.com/orestonce/ChessGame/ChessServer
$env:GOOS=‘windows’
$env:GOARCH='amd64'
go mod tidy
go build -o bin/ChessGame_windows_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_windows_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_windows_amd64 github.com/orestonce/ChessGame/ChessServer
$env:GOOS='linux'
$env:GOARCH='386'
go mod tidy
go build -o bin/ChessGame_linux_386 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_linux_386 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_linux_386 github.com/orestonce/ChessGame/ChessServer
$env:GOOS='linux'
$env:GOARCH='amd64'
go mod tidy
go build -o bin/ChessGame_linux_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_linux_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_linux_amd64 github.com/orestonce/ChessGame/ChessServer
$env:GOOS='linux'
$env:GOARCH='arm64'
go mod tidy
go build -o bin/ChessGame_linux_arm64 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_linux_arm64 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_linux_arm64 github.com/orestonce/ChessGame/ChessServer
$env:GOOS='darwin'
$env:GOARCH='amd64'
go mod tidy
go build -o bin/ChessGame_darwin_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_darwin_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_darwin_amd64 github.com/orestonce/ChessGame/ChessServer
$env:GOOS='darwin'
$env:GOARCH='arm64'
go mod tidy
go build -o bin/ChessGame_darwin_arm64 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_darwin_arm64 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_darwin_arm64 github.com/orestonce/ChessGame/ChessServer
build-windows-x64:
runs-on: windows-latest
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/release-build-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,20 @@ jobs:
$env:GOOS='linux'
$env:GOARCH='amd64'
go mod tidy
go build -o bin/ChessGame_linux_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGame
go build -o bin/ChessGate_linux_amd64 github.com/orestonce/ChessGame/ChessServer/ChessGate
go build -o bin/ChessServer_linux_amd64 github.com/orestonce/ChessGame/ChessServer
- name: upload release ChessClient_windows_x86_qt
uses: Guerra24/upload-to-release@v1
with:
name: ChessClient_windows_x86_qt-${{ github.ref_name }}.exe
path: ChessClient\release\ChessClient.exe
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: upload release ChessGame_linux_x64

- name: upload release ChessServer_linux_x64
uses: Guerra24/upload-to-release@v1
with:
name: ChessGame_linux_x64-${{ github.ref_name }}
path: bin/ChessGame_linux_amd64
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: upload release ChessGate_linux_x64
uses: Guerra24/upload-to-release@v1
with:
name: ChessGate_linux_x64-${{ github.ref_name }}
path: bin/ChessGate_linux_amd64
name: ChessServer_linux_x64-${{ github.ref_name }}
path: bin/ChessServer_linux_amd64
repo-token: ${{ secrets.GITHUB_TOKEN }}

build-upload_windows-x64:
Expand Down

0 comments on commit 44683c2

Please sign in to comment.