forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (67 loc) · 2.16 KB
/
jit-riscv64.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
on:
workflow_dispatch:
push:
branches:
- riscv-jit-rv64
jobs:
cross-build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-riscv64
env:
ROOTFS_DIR: /crossrootfs/riscv64
QEMU_LD_PREFIX: /crossrootfs/riscv64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cross Rebuild Mono
run: ./build.sh mono -c Debug --cross --arch riscv64 --ci --rebuild
- name: Cross Build Mono
if: ${{ failure() }}
# ./build.sh mono+libs+host+clr.hosts -c Debug --cross --arch riscv64 --ninja /p:KeepNativeSymbols=true --build
run: ./build.sh mono -c Debug --cross --arch riscv64 --ci
- name: Cross Rebuild Libs & host
run: ./build.sh mono+libs+host+clr.hosts -c Release --cross --arch riscv64 --ci --rebuild
- name: Cross Build Libs & host
if: ${{ failure() }}
run: ./build.sh mono+libs+host+clr.hosts -c Release --cross --arch riscv64 --ci
# cache
- name: Cache
uses: actions/cache@v2
with:
path: |
.dotnet/
artifacts/
key: ${{ runner.os }}-dotnet-cross-build
- name: Build Tests programs
run: ./build.sh -mono -release riscv64 -tree:JIT/ --ci
working-directory: ./src/tests
# upload entire project
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: jit-riscv64
path: ./
test:
continue-on-error: true
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-riscv64
env:
ROOTFS_DIR: /crossrootfs/riscv64
QEMU_LD_PREFIX: /crossrootfs/riscv64
needs: cross-build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: jit-riscv64
- name: Cache
uses: actions/cache@v2
with:
path: |
artifacts/tests/coreclr
key: ${{ runner.os }}-dotnet-test
- name: Run tests
run: bash -c ./run.sh Release
working-directory: ./src/tests