-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (38 loc) · 916 Bytes
/
bazel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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