Skip to content

Commit

Permalink
Added MacOS to build target.
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInDark committed Oct 19, 2022
1 parent a579708 commit 1541731
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
run: /opt/hostedtoolcache/go/1.19.1/x64/bin/go build -o WattenServer/bin/WattenServer ./WattenServer
- name: Build for Windows
run: GOOS=windows GOARCH=amd64 /opt/hostedtoolcache/go/1.19.1/x64/bin/go build -o WattenServer/bin/WattenServer.exe ./WattenServer
- name: Build for MacOS
run: GOOS=darwin GOARCH=amd64 /opt/hostedtoolcache/go/1.19.1/x64/bin/go build -o WattenServer/bin/Wattenserver.app ./WattenServer
- name: ZIP Files
run: |
cd WattenServer
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- run: cd WattenServer; GOOS=windows GOARCH=amd64 /opt/hostedtoolcache/go/1.19.1/x64/bin/go build
Test_WattenServer_Build_For_MacOS:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cd WattenServer; GOOS=darwin GOARCH=amd64 /opt/hostedtoolcache/go/1.19.1/x64/bin/go build
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ build_WattenServer_Linux:
build_WattenServer_Windows:
GOOS=windows GOARCH=amd64 go build -o WattenServer/bin/WattenServer.exe ./WattenServer

build_all: build_WattenServer_Linux build_WattenServer_Windows
build_WattenServer_MacOS:
GOOS=darwin GOARCH=amd64 go build -o WattenServer/bin/WattenServer.app ./WattenServer

build_all: build_WattenServer_Linux build_WattenServer_Windows build_WattenServer_MacOS

zip_program: build_all
- rm WattenServer/watten.zip
cd WattenServer; zip -r watten.zip *.js *.html svg; zip -jr watten.zip bin
cd WattenServer; zip -r watten.zip *.js *.html svg; zip -jr watten.zip bin

0 comments on commit 1541731

Please sign in to comment.