Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Fix the release of binded Go to iOS in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed May 29, 2020
1 parent 0f8e41b commit 8ec7138
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gomobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ on:

jobs:
bind-go-android:
name: Gomobile
name: Release Go binded to Android
runs-on: ubuntu-latest
outputs:
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:

- uses: actions/checkout@v2
Expand Down Expand Up @@ -108,7 +110,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bind-go-ios:
name: Test Go
name: Release Go binded to iOS
needs: bind-go-android
runs-on: macos-latest
steps:

Expand All @@ -135,7 +138,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.bind-go-android.outputs.release_upload_url }}
asset_path: /tmp/build/Iden3mobile.framework
asset_name: Iden3mobile.framework
asset_content_type: application/zip
1 change: 1 addition & 0 deletions go/iden3mobile/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func NewHttpClient(urlBase string) *HttpClient {
return &HttpClient{HttpClient: *httpclient.NewHttpClient(urlBase)}
}

// DoRequest performs an HTTP request
func (p *HttpClient) DoRequest(s *sling.Sling, res interface{}) error {
err := p.HttpClient.DoRequest(s, res)
switch e := err.(type) {
Expand Down

0 comments on commit 8ec7138

Please sign in to comment.