forked from numworks/epsilon
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.35 KB
/
external_apps.yml
File metadata and controls
51 lines (48 loc) · 1.35 KB
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
name: External Apps Build
on:
pull_request:
paths:
- 'external_apps/**'
env:
MAKEFLAGS: -j2
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
c_cpp_apps:
runs-on: ubuntu-latest
steps:
- name: Install toolchain
uses: numworks/setup-arm-toolchain@latest
- name: Checkout code
uses: actions/checkout@v3
- name: Setup
run: build/setup.sh
- uses: actions/setup-node@v4
with:
node-version: latest
- name: Setup nwlink
run: npm install -g nwlink
- name: Build sample_c for device
run: make -C external_apps/sample_c PLATFORM=device build
- name: Build sample_cpp for device
run: make -C external_apps/sample_cpp PLATFORM=device build
- name: Build rpn_cpp for device
run: make -C external_apps/rpn_cpp PLATFORM=device build
rust_app:
runs-on: ubuntu-latest
if: 0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Go to rust external app directory
run: cd external_apps/sample_rust
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv7em-none-eabihf
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build