-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (48 loc) · 1.52 KB
/
continuous_integration.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
---
name: Continuous Integration
on:
pull_request:
branches:
- main
workflow_call:
jobs:
FTDI_Tests:
name: FTDI Tests
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust and FTDI
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
apt-get install libftdi1 libftdi1-dev -y
- name: Cold Start Tests
run: |
echo "Running Cold Start Tests"
source "$HOME"/.cargo/env
cargo test cold_start_tests --features=std -- --test-threads=1
- name: Setting Register Tests
run: |
echo "Running Setting Register Tests"
source "$HOME"/.cargo/env
cargo test setting_register_tests --features=std -- --test-threads=1
Raspberry_Pi_Tests:
name: Raspberry Pi Tests
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
apt-get install libftdi1 libftdi1-dev -y
- name: Cold Start Tests
run: |
echo "Running Cold Start Tests"
source "$HOME"/.cargo/env
cargo test cold_start_tests --features=rpi -- --test-threads=1
- name: Setting Register Tests
run: |
echo "Running Setting Register Tests"
source "$HOME"/.cargo/env
cargo test setting_register_tests --features=rpi -- --test-threads=1