-
Notifications
You must be signed in to change notification settings - Fork 259
55 lines (50 loc) · 1.6 KB
/
dotnet.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
name: .NET
on:
push:
branches:
- '*'
paths: [ 'dotnet/**' ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build, restore, test
shell: pwsh
run: ./pipelines/build-dotnet.ps1
arm64_job:
name: Build and Test for arm64
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Install and Run tests
run: |
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
arm64v8/ubuntu:20.04 \
bash -exc 'apt-get update && \
apt install sudo -y && \
sudo apt clean && \
sudo apt update && \
sudo apt install --fix-missing && \
sudo apt update --fix-missing && \
sudo apt install wget -y && \
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
sudo chmod +x ./dotnet-install.sh && \
./dotnet-install.sh --channel 6.0 && \
export DOTNET_ROOT=$HOME/.dotnet && \
export PATH=$PATH:$HOME/.dotnet:$HOME/.dotnet/tools && \
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 && \
dotnet --version && \
cd dotnet && \
dotnet restore && \
dotnet build -c Release && \
dotnet test -c Release'