xref: /DragonBoot/.github/workflows/riscv64-build.yml (revision abdb84b821932b89f5491f7fcc08c47807f19cc4)
1name: Riscv64 Build Check
2
3on:
4  push:
5    branches: [ "master" ]
6  pull_request:
7    branches: [ "master" ]
8
9jobs:
10  # ensure the toolchain is cached
11  ensure-toolchain:
12    uses: ./.github/workflows/cache-toolchain.yml
13
14  build:
15
16    runs-on: ubuntu-latest
17    needs: [ensure-toolchain]
18
19    steps:
20    - uses: actions/checkout@v3
21
22
23    - name: Cache build tools
24      id: dragon-boot-cache-build-tools
25      uses: actions/cache@v3
26      env:
27          cache-name: dragon-boot-cache-build-tools
28      with:
29        path: |
30          ~/.cargo
31          ~/.rustup
32          ~/.bashrc
33        key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('.github/workflows/cache-toolchain.yml') }}
34
35
36    - name: Riscv64 Build Check
37      run: |
38            ARCH=riscv64 make
39