-
Notifications
You must be signed in to change notification settings - Fork 3
100 lines (99 loc) · 3.32 KB
/
build-ferrocene.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Copyright (c) 2023 Ferrous Systems
# SPDX-License-Identifier: MIT OR Apache-2.0
name: workflow-build-everything-ferrocene
run-name: Build Everything with Ferrocene
on: [push, pull_request]
jobs:
job-build-nrf52-app:
runs-on: ubuntu-latest
steps:
- name: Install Arm C compiler
run: |
sudo apt-get update -y && sudo apt-get -y install gcc-arm-none-eabi
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ferrocene/criticalup/releases/download/v1.0.1/criticalup-installer.sh | sh
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install Ferrocene
env:
CRITICALUP_TOKEN: ${{ secrets.CRITICALUP_TOKEN }}
run: |
criticalup install
echo "$HOME/.local/share/criticalup/bin" >> $GITHUB_PATH
- name: Find slug name
run: |
slug=$(./describe.sh "${GITHUB_REF}")
echo "Building with slug '${slug}'"
echo "BUILD_SLUG=${slug}" >> "${GITHUB_ENV}"
- name: Check nRF52 App
run: |
cd nrf52-app
rustc --version
cargo --version
cargo check --target=thumbv7em-none-eabi
- name: Build nRF52 App
run: |
cd nrf52-app
rustc --version
cargo --version
cargo build --target=thumbv7em-none-eabi --release
- name: Upload nrf52-app
uses: actions/upload-artifact@master
with:
name: nrf52-app
path: nrf52-app/target/thumbv7em-none-eabi/release/nrf52-app
job-build-qemu-cortex-r5-app:
runs-on: ubuntu-latest
steps:
- name: Install Arm C compiler
run: |
sudo apt-get update -y && sudo apt-get -y install gcc-arm-none-eabi
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ferrocene/criticalup/releases/download/v1.0.1/criticalup-installer.sh | sh
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install Ferrocene
env:
CRITICALUP_TOKEN: ${{ secrets.CRITICALUP_TOKEN }}
run: |
criticalup install
echo "$HOME/.local/share/criticalup/bin" >> $GITHUB_PATH
- name: Find slug name
run: |
slug=$(./describe.sh "${GITHUB_REF}")
echo "Building with slug '${slug}'"
echo "BUILD_SLUG=${slug}" >> "${GITHUB_ENV}"
- name: Check QEMU Cortex-R5 App
run: |
cd qemu-cortex-r5-app
rustc --version
cargo --version
cargo check --target=armv7r-none-eabihf
- name: Build QEMU Cortex-R5 App
run: |
cd qemu-cortex-r5-app
rustc --version
cargo --version
cargo build --target=armv7r-none-eabihf --release
- name: Upload QEMU Cortex-R5 App
uses: actions/upload-artifact@master
with:
name: qemu-cortex-r5-app
path: qemu-cortex-r5-app/target/armv7r-none-eabihf/release/qemu-cortex-r5-app
job-build-threadx-sys:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Check threadx-sys
run: |
cd threadx-sys
cargo check
- name: Build threadx-sys
run: |
cd threadx-sys
cargo build