build(deps): bump cycjimmy/semantic-release-action from 2 to 3 #259
Workflow file for this run
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
--- | |
name: Build iOS | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
release_and_publish: | |
name: Build iOS pods | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
golang: | |
- 1.18 | |
steps: | |
- name: Checkout changes | |
uses: actions/checkout@v3 | |
- name: Set constants | |
run: echo "::set-output name=GOMOBILE_IPFS_VERSION::0.42.0-dev-${{ github.sha }}" # yamllint disable-line rule:line-length | |
id: constants | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.golang }} | |
- name: Set GOPATH in env | |
run: | | |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
mkdir -p $(go env GOPATH)/src/github.com/ipfs-shipyard | |
ln -s $PWD $(go env GOPATH)/src/github.com/ipfs-shipyard/gomobile-ipfs | |
shell: bash | |
- name: Set GOPATH in env | |
run: | | |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
mkdir -p $(go env GOPATH)/src/github.com/ipfs-shipyard | |
ln -s $PWD $(go env GOPATH)/src/github.com/ipfs-shipyard/gomobile-ipfs | |
shell: bash | |
- name: Restore Go mod cache | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('go/go.sum') }} | |
- name: Install Go mod | |
if: steps.cache.outputs.cache-hit != 'true' | |
working-directory: go | |
run: GO111MODULE=on go mod vendor | |
- name: Update Cocoapods | |
run: | | |
gem update cocoapods cocoapods-trunk | |
pod setup | |
- name: Build iOS packages | |
env: | |
GOMOBILE_IPFS_VERSION: ${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }} # yamllint disable-line rule:line-length | |
run: make build_bridge.ios | |
- name: Upload the core archive | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/ios/cocoapods/core/${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}/Gomobile-IPFS-Core-v${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}.pod.zip # yamllint disable-line rule:line-length | |
name: Gomobile-IPFS-Core-v${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}.pod.zip # yamllint disable-line rule:line-length | |
if-no-files-found: error | |
- name: Upload the core podspec | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/ios/cocoapods/core/${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}/Gomobile-IPFS-Core.podspec # yamllint disable-line rule:line-length | |
name: Gomobile-IPFS-Core.podspec | |
if-no-files-found: error | |
- name: Upload the bridge archive | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/ios/cocoapods/bridge/${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}/Gomobile-IPFS-Bridge-v${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}.pod.zip # yamllint disable-line rule:line-length | |
name: Gomobile-IPFS-Bridge-v${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}.pod.zip # yamllint disable-line rule:line-length | |
if-no-files-found: error | |
- name: Upload the bridge podspec | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/ios/cocoapods/bridge/${{ steps.constants.outputs.GOMOBILE_IPFS_VERSION }}/Gomobile-IPFS-Bridge.podspec # yamllint disable-line rule:line-length | |
name: Gomobile-IPFS-Bridge.podspec | |
if-no-files-found: error |