-
Notifications
You must be signed in to change notification settings - Fork 364
44 lines (43 loc) · 1.14 KB
/
build-modules.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
name: Setup, Build & Test modules
on:
workflow_call:
inputs:
os:
required: true
type: string
platform:
required: true
type: string
arch:
required: true
type: string
toolchain:
required: true
type: string
jobs:
build:
name: ${{ inputs.arch }}-${{ inputs.platform }}
runs-on: ${{ inputs.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ inputs.toolchain }}
- name: Run build crates
shell: bash
env:
RUSTFLAGS: ""
run: |
readarray crates < <(cargo metadata --no-deps --format-version 1 --quiet | jq -r '.packages[] | select(.manifest_path | contains("modules/")) | .name')
for crate in "${crates[@]}"; do
echo "Compiling crate: $crate"
cargo build -p $crate
done
- name: Run build all
run: |
cargo build -p llrt_modules
- name: Run tests all
run: |
cargo test -p llrt_modules