-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 956 Bytes
/
riscv.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
name: riscv
on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- '*'
jobs:
dockcross-riscv:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- name: linux-riscv64
- name: linux-riscv32
steps:
- uses: actions/checkout@v2
- name: setup dockcross
run: docker run --rm dockcross/${{ matrix.name }} > ./dockcross-${{ matrix.name }}; chmod +x ./dockcross-${{ matrix.name }}
- uses: actions/cache@v2
id: cache
with:
path: ./build/${{ matrix.name }}
key: ${{ github.job }}-${{ matrix.name }}-${{ hashFiles('./**') }}
- name: setup doctest
run: bash scripts/download_doctest_header.sh -d include/
- name: build
run: ./dockcross-${{ matrix.name }} bash -c 'mkdir -p build/${{ matrix.name }} && cd build/${{ matrix.name }}/ && cmake ../.. && make -j2'