This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 209
53 lines (44 loc) · 1.62 KB
/
tests.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
name: tests
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
riscv_cflags: [
"",
"-std=c99 -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter",
]
riscv_libc: [
"",
]
steps:
- name: 'Clone freedom-e-sdk'
uses: actions/checkout@v2
with:
path: freedom-e-sdk
fetch-depth: 1
submodules: true
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: 'Login to Docker Hub'
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 'Build freedom-e-sdk container'
run: |
docker build -t freedom-e-sdk \
-f freedom-e-sdk/docker/Dockerfile \
freedom-e-sdk
- name: 'Check BSP files are up-to-date'
run: |
docker run --rm freedom-e-sdk ./scripts/check-bsps-updated
- name: 'Build all examples on all targets'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" -e RISCV_LIBC="${{ matrix.riscv_libc }}" freedom-e-sdk ./scripts/all-targets-build
- name: 'Run examples on QEMU'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" -e RISCV_LIBC="${{ matrix.riscv_libc }}" freedom-e-sdk ./scripts/test-qemu-targets
- name: 'Build examples as standalone projects'
run: |
docker run --rm -e RISCV_CFLAGS="${{ matrix.riscv_cflags }}" -e RISCV_LIBC="${{ matrix.riscv_libc }}" freedom-e-sdk ./scripts/test-standalone