diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e947d771..c8a4e9aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -158,6 +158,50 @@ jobs: - name: build release for architecture run: make release sys=${{ matrix.build_sys }} + ######################## + # 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: download cache + uses: actions/cache@v1 + with: + path: /home/runner/work/download_cache + key: lnd-${{ runner.os }}-download-${{ hashFiles('**/install_travis_proto.sh') }} + restore-keys: | + lnd-${{ runner.os }}-download-${{ hashFiles('**/install_travis_proto.sh') }} + lnd-${{ runner.os }}-download- + + - name: install protoc and protobuf libraries + run: ./scripts/install_travis_proto.sh + + - name: build mobile RPC bindings + run: make mobile-rpc + + - name: build mobile specific code + run: go build --tags="mobile" ./mobile + ######################## # run unit tests ########################