Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Enlarged Go Action
Browse files Browse the repository at this point in the history
  • Loading branch information
umgefahren committed Dec 12, 2021
1 parent 1915585 commit 6dfae8c
Showing 1 changed file with 63 additions and 2 deletions.
65 changes: 63 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches: [ master ]

jobs:

build:
build_and_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -36,3 +36,64 @@ jobs:

- name: Test
run: go test -v ./...

build_go_mobile:
needs: build_and_test
name: Build Go Mobile
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Install Protoc
uses: arduino/setup-protoc@v1

- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

- name: Generate Protobufs
run: sh setup.sh

- name: Get Dependencies
run: |
go get -d ./...
go get -d golang.org/x/mobile/cmd/gomobile
- name: Install Go Mobile
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
go install golang.org/x/mobile/cmd/gobind@latest
- name: Build Artifacts
working-directory: ./dione-mobile
run: gomobile bind -target="ios"
# run: gomobile bind -target="ios,iossimulator,macos,maccatalyst"

- name: List Framework
run: ls dione-mobile

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Dione_mobile.xcframework
path: dione-mobile/Dione_mobile.xcframework/

create_release:
needs: build_go_mobile
runs-on: ubuntu-latest
name: Create Release
steps:
- uses: actions/checkout@v2

- uses: ncipollo/release-action@v1
with:
tag: latest
name: Dione Mobile Framework
allowUpdates: true
prerelease: true
artifacts: "Dione_mobile.xcframework"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6dfae8c

Please sign in to comment.