ci: check mobile compilation in same step as RPC

Because we now build a docker image for the RPC compilation, we can save
some execution minutes if we run the mobile RPC and code compilation check in the
same step of the CI workflow.
This commit is contained in:
Oliver Gugger 2021-01-15 13:44:56 +01:00
parent 3bcfe931f9
commit aff1a0334e
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -28,10 +28,10 @@ env:
jobs: jobs:
######################## ########################
# RPC compilation check # RPC and mobile compilation check
######################## ########################
rpc-check: rpc-check:
name: RPC compilation check name: RPC and mobile compilation check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: git checkout - name: git checkout
@ -55,6 +55,12 @@ jobs:
- name: run check - name: run check
run: make rpc-check run: make rpc-check
- name: build mobile RPC bindings
run: make mobile-rpc
- name: build mobile specific code
run: go build --tags="mobile" ./mobile
######################## ########################
# check commits # check commits
@ -156,38 +162,6 @@ jobs:
- name: build release for all architectures - name: build release for all architectures
run: make release run: make release
########################
# mobile compilation
########################
mobile-compile:
name: mobile compilation
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v2
- name: go cache
uses: actions/cache@v1
with:
path: /home/runner/work/go
key: lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-${{ hashFiles('**/go.sum') }}
lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ github.job }}-
lnd-${{ runner.os }}-go-${{ env.GO_VERSION }}-
lnd-${{ runner.os }}-go-
- name: setup go ${{ env.GO_VERSION }}
uses: actions/setup-go@v2
with:
go-version: '~${{ env.GO_VERSION }}'
- name: build mobile RPC bindings
run: make mobile-rpc
- name: build mobile specific code
run: go build --tags="mobile" ./mobile
######################## ########################
# sample configuration check # sample configuration check
######################## ########################