forked from cloned-doy/whatsfly
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,9 @@ jobs: | |
go-version: '1.21' | ||
|
||
- name: Build | ||
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -v -buildmode=c-shared -ldflags=-s -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-linux-amd64.so ./whatsfly/dependencies/main.go | ||
run: | | ||
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -v -buildmode=c-shared -ldflags=-s -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-linux-amd64.so ./whatsfly/dependencies/main.go | ||
cp ./whatsfly/dependencies/whatsmeow/static/whatsmeow-linux-amd64.so ./whatsfly/dependencies/whatsmeow/static/whatsmeow-linux-amd64-$GITHUB_SHA.so | ||
- name: Commit changes | ||
run: | | ||
|
@@ -41,8 +43,13 @@ jobs: | |
go-version: '1.21' | ||
|
||
- name: Build | ||
env: | ||
GOOS: windows | ||
GOARCH: amd64 | ||
CGO_ENABLED: 1 | ||
CC: x86_64-w64-mingw32-gcc | ||
run: | | ||
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -v -buildmode=c-shared -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-windows-64.so ./whatsfly/dependencies/main.go | ||
go build -v -buildmode=c-shared -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-windows-64.dll ./whatsfly/dependencies/main.go | ||
- name: Commit changes | ||
run: | | ||
|
@@ -51,7 +58,7 @@ jobs: | |
git commit -am "New build" | ||
git push | ||
build-osx: | ||
runs-on: windows-latest | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -62,9 +69,10 @@ jobs: | |
|
||
- name: Build | ||
run: | | ||
GOOS=darwin GOARCH=amd64 go build -v -buildmode=c-shared -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-arm64.so ./whatsfly/dependencies/main.go | ||
GOOS=darwin GOARCH=arm64 go build -v -buildmode=c-shared -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-arm64.so ./whatsfly/dependencies/main.go | ||
GOOS=darwin GOARCH=amd64 go build -v -buildmode=c-shared -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-amd64.dylib ./whatsfly/dependencies/main.go | ||
GOOS=darwin GOARCH=arm64 go build -v -buildmode=c-shared -o ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-arm64.dylib ./whatsfly/dependencies/main.go | ||
cp ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-amd64.dylib ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-amd64-$GITHUB_SHA.dylib | ||
cp ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-arm64.dylib ./whatsfly/dependencies/whatsmeow/static/whatsmeow-darwin-arm64-$GITHUB_SHA.dylib | ||
- name: Commit changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|