update ymal #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# cache | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
.dotnet/ | |
artifacts/ | |
key: ${{ runner.os }}-dotnet-cross-build | |
- name: Cross Build Libs & host | |
run: ./build.sh libs -c Release --cross --arch riscv64 --ci | |
- name: Cross Build Mono | |
# ./build.sh mono+libs+host+clr.hosts -c Debug --cross --arch riscv64 --ninja /p:KeepNativeSymbols=true --build | |
run: ./build.sh mono+libs+host+clr.hosts -c Debug --cross --arch riscv64 --ci | |
- name: compress files | |
run: tar -zcf runtime.tar.gz ./.dotnet ./artifacts | |
# upload entire project | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: runtime.tar.gz | |
path: ./runtime.tar.gz | |
test: | |
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 | |
CORE_ROOT: /__w/runtime/runtime/artifacts/tests/coreclr/linux.riscv64.Debug/Tests/Core_Root | |
needs: cross-build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download Artifacts | |
uses: actions/download-artifact@v2 | |
with: | |
name: runtime.tar.gz | |
- name: Decompress | |
run: tar -zxf runtime.tar.gz -C ./ | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
artifacts/tests/ | |
key: ${{ runner.os }}-dotnet-cross-build | |
- name: Build Tests programs | |
run: ./build.sh -mono -Debug riscv64 -tree:JIT/ --ci | |
working-directory: ./src/tests | |
- name: Run tests | |
continue-on-error: true | |
run: bash -c ./run.sh Debug | |
working-directory: ./src/tests | |