|
1 | 1 | name: Build RISC-V runner
|
2 | 2 |
|
3 |
| -on: [workflow_dispatch, pull_request] |
| 3 | +on: [workflow_dispatch] |
4 | 4 |
|
5 | 5 | jobs:
|
6 |
| - run: |
| 6 | + build: |
7 | 7 | runs-on: self-hosted
|
8 | 8 |
|
9 | 9 | steps:
|
10 | 10 | - name: Clone repositories
|
11 | 11 | run: |
|
| 12 | + rm -rf runner |
12 | 13 | git clone -b dkurt/riscv64_runner https://github.com/dkurt/runner --depth 1
|
13 | 14 |
|
14 | 15 | - name: Download .NET
|
15 | 16 | run: |
|
16 |
| - wget https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/dotnet-sdk-8.0.101-linux-riscv64.tar.gz |
| 17 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/dotnet-sdk-8.0.101-linux-riscv64.tar.gz |
| 18 | + mkdir ${{ github.workspace }}/packages |
| 19 | + cd ${{ github.workspace }}/packages |
| 20 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.AspNetCore.App.Runtime.linux-riscv64.8.0.1-servicing.23580.8.nupkg |
| 21 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.AspNetCore.App.Runtime.linux-riscv64.8.0.1-servicing.23580.8.symbols.nupkg |
| 22 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.AspNetCore.App.Runtime.linux-riscv64.8.0.1.nupkg |
| 23 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.AspNetCore.App.Runtime.linux-riscv64.8.0.1.symbols.nupkg |
| 24 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.NETCore.App.Host.linux-riscv64.8.0.1.nupkg |
| 25 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.NETCore.App.Host.linux-riscv64.8.0.1.symbols.nupkg |
| 26 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.NETCore.App.Runtime.linux-riscv64.8.0.1-servicing.23580.1.nupkg |
| 27 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.NETCore.App.Runtime.linux-riscv64.8.0.1-servicing.23580.1.symbols.nupkg |
| 28 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.NETCore.App.Runtime.linux-riscv64.8.0.1.nupkg |
| 29 | + wget -q https://github.com/dkurt/dotnet_riscv/releases/download/v8.0.101/Microsoft.NETCore.App.Runtime.linux-riscv64.8.0.1.symbols.nupkg |
17 | 30 |
|
18 | 31 | - name: Prepare
|
19 | 32 | run: |
|
20 | 33 | cd runner
|
| 34 | + sed -i "s|/home/ubuntu/packages|${{ github.workspace }}|" src/NuGet.Config |
| 35 | +
|
21 | 36 | mkdir -p _dotnetsdk/8.0.101
|
22 | 37 | cd _dotnetsdk/8.0.101
|
23 | 38 | tar -xf ${{ github.workspace }}/dotnet-sdk-8.0.101-linux-riscv64.tar.gz
|
|
26 | 41 | run: |
|
27 | 42 | cd runner/src
|
28 | 43 | ./dev.sh layout Release linux-riscv64
|
29 |
| - |
| 44 | +
|
| 45 | + - name: Package |
| 46 | + run: | |
| 47 | + cd runner/src |
| 48 | + ./dev.sh package Release linux-riscv64 |
0 commit comments