Add files via upload #986
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 icon bridge' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
pull_request: | |
jobs: | |
build_bsc: | |
name: Build icon-bridge bsc | |
runs-on: ubuntu-latest | |
container: | |
image: iconbridge/build | |
options: --user 1001 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- run: node -v | |
- name: Build solidity bmc | |
working-directory: ./solidity/bmc | |
run: yarn | |
- name: Compile solidity bmc contracts | |
working-directory: ./solidity/bmc | |
run: yarn contract:compile | |
- name: Build solidity bts | |
working-directory: ./solidity/bts | |
run: yarn | |
- name: Compile solidity bmc contracts | |
working-directory: ./solidity/bmc | |
run: yarn contract:compile | |
build_icon: | |
name: Build icon-bridge icon | |
runs-on: ubuntu-latest | |
container: | |
image: iconbridge/build | |
options: --user 1001 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- run: java -version | |
- name: Build javascore bmc | |
working-directory: ./javascore | |
run: gradle bmc:build | |
- name: Run javascore bmc tests | |
working-directory: ./javascore | |
run: gradle bmc:test | |
- name: Build javascore bmc optimized jar | |
working-directory: ./javascore | |
run: gradle bmc:optimizedJar | |
- name: Build javascore bts | |
working-directory: ./javascore | |
run: gradle bts:build | |
- name: Run javascore bts tests | |
working-directory: ./javascore | |
run: gradle bts:test | |
- name: Build javascore bts optimized jar | |
working-directory: ./javascore | |
run: gradle bts:optimizedJar | |
build_bmr: | |
name: Build icon-bridge bmr | |
runs-on: ubuntu-latest | |
container: | |
image: iconbridge/build | |
options: --user 1001 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- run: go version | |
- name: Build BMR | |
working-directory: ./cmd/iconbridge | |
run: go build | |
- name: Run BMR unit tests | |
working-directory: ./cmd/iconbridge | |
run: go test ./... | |
- name: Run BMR common unit tests | |
working-directory: ./common | |
run: go test ./... |