build: set up Bazel configuration #2
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: Bazel | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
paths-ignore: | |
- "README.md" | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: Swatinem/rust-cache@v2 | |
- name: Bazel sync | |
run: bazel sync | |
- name: Check unchanged | |
run: git diff -q | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: Swatinem/rust-cache@v2 | |
# - name: Install dfx | |
# uses: dfinity/setup-dfx@main | |
# - name: Start dfx | |
# run: dfx start --background | |
- name: Bazel build | |
run: bazel build evm_rpc |