Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
matteriot committed Apr 27, 2024
1 parent 963ae29 commit 9222a50
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
45 changes: 34 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
gomobile-libs:
runs-on: macos-latest
gomobile-android-libs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -81,14 +81,6 @@ jobs:
env:
GO111MODULE: on
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
- name: build ios xcframework
run: gomobile bind -ldflags '-w -s -extldflags "-lresolve"' --target=ios,macos,iossimulator -o OpenIoTHubGateway.xcframework ./client
- run: zip -r OpenIoTHubGateway.xcframework.zip OpenIoTHubGateway.xcframework
- name: Release OpenIoTHubGateway.xcframework
uses: softprops/action-gh-release@v1
with:
files: |
OpenIoTHubGateway.xcframework.zip
- name: build android aar
run: gomobile bind -target=android -o gateway.aar ./client
env:
Expand All @@ -97,4 +89,35 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
gateway.aar
gateway.aar
gomobile-apple-libs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ^1.20
- name: Test golang code
run: go test ./...
- name: install and setup gomobile
run: |
go install golang.org/x/mobile/cmd/gobind@latest
go install golang.org/x/mobile/cmd/gomobile@latest
go get -u golang.org/x/mobile/...
gomobile init
gomobile version
gomobile clean
env:
GO111MODULE: on
- name: build ios xcframework
run: gomobile bind -ldflags '-w -s -extldflags "-lresolve"' --target=ios,macos,iossimulator -o OpenIoTHubGateway.xcframework ./client
- run: zip -r OpenIoTHubGateway.xcframework.zip OpenIoTHubGateway.xcframework
- name: Release OpenIoTHubGateway.xcframework
uses: softprops/action-gh-release@v1
with:
files: |
OpenIoTHubGateway.xcframework.zip
1 change: 0 additions & 1 deletion services/config_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func UseConfigFile() {
// 通过gateway jwt(UUID)展示二维码
tokenModel, err := utils_models.DecodeUnverifiedToken(v)
if err != nil {
log.Printf("DecodeUnverifiedToken:", err.Error())
return
}
err = displayQRCodeById(tokenModel.RunId)
Expand Down

0 comments on commit 9222a50

Please sign in to comment.