-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (51 loc) · 1.43 KB
/
ci-test.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: ci-test
# Trigger the workflow when:
on:
# A push occurs to one of the matched branches.
push:
branches:
- main
- stable/*
# Or when a pull request event occurs for a pull request against one of the
# matched branches.
pull_request:
branches:
- main
- stable/*
jobs:
test-rust:
# NOTE: This name appears in GitHub's Checks API.
name: test-rust
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./runtime
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
run: rustup show
- name: Install protoc
run: sudo apt install -y protobuf-compiler
- name: Build
run: cargo build --release --locked
test-rust-sgx:
# NOTE: This name appears in GitHub's Checks API.
name: test-rust-sgx
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./runtime
steps:
- name: Checkout code
uses: actions/checkout@v4
# gcc-multilib is required for bindgen to work for SGX.
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gcc-multilib
- name: Set up Rust
run: rustup show
- name: Check SGX buildability
run: cargo check --locked --release --target x86_64-fortanix-unknown-sgx