diff --git a/.github/workflows/gomobile.yml b/.github/workflows/gomobile.yml index 2cd130d..99746ad 100644 --- a/.github/workflows/gomobile.yml +++ b/.github/workflows/gomobile.yml @@ -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 @@ -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: @@ -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 \ No newline at end of file diff --git a/go/iden3mobile/httpclient.go b/go/iden3mobile/httpclient.go index 290ce05..c84f1c6 100644 --- a/go/iden3mobile/httpclient.go +++ b/go/iden3mobile/httpclient.go @@ -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) {