forked from diem/diem
-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (31 loc) · 959 Bytes
/
build.yaml
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
name: Check code builds
on:
push:
branches:
- release
- ci-test
pull_request:
types: [opened, reopened]
branches:
- release
jobs:
lint-checks:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Print installed Rust toolchains
run: rustup toolchain list
- name: Install required non-Rust build tools
uses: awalsh128/cache-apt-pkgs-action@latest
with:
# TODO: check if we need all the packages below -- this list comes from the Libra build setup script
packages: build-essential lld pkg-config libssl-dev libgmp-dev clang
version: 1.0 # This is a cache key -- change it when you change the package list above
- name: Run cargo build
run: cargo build