build: set up Bazel configuration #7
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: | |
pin: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: Swatinem/rust-cache@v2 | |
- name: Bazel pin | |
run: scripts/bazel-pin | |
- name: Check unchanged | |
run: git diff -q | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: bazelbuild/setup-bazelisk@v3 | |
- name: Setup Bazel cache | |
uses: actions/cache@v4 | |
with: | |
path: "~/.cache/bazel" | |
key: bazel | |
- name: Bazel build | |
run: bazel build evm_rpc --action_env=CARGO=$(which cargo) # TODO | |
# - name: Install dfx | |
# uses: dfinity/setup-dfx@main | |
# - name: Start dfx | |
# run: dfx start --background |