Skip to content

build: set up Bazel configuration #7

build: set up Bazel configuration

build: set up Bazel configuration #7

Workflow file for this run

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