forked from dotdevelop/libgit2sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.27 KB
/
Copy pathlibgit2sharp.yml
File metadata and controls
42 lines (36 loc) · 1.27 KB
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
name: .NET
on:
push:
branches: [ dotdevelop ]
pull_request:
branches: [ dotdevelop ]
jobs:
build:
runs-on: ubuntu-20.04
container:
image: "debian:buster"
steps:
- name: Dependencies
run: |
apt update
apt upgrade -y
apt install git apt-transport-https dirmngr gnupg ca-certificates wget autoconf intltool build-essential sed -y
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-buster main" > /etc/apt/sources.list.d/mono-official-stable.list
apt update
apt install mono-devel fsharp gtk-sharp2 -y
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.401
- name: Restore dependencies
run: dotnet restore LibGit2Sharp.sln
- name: Build
run: dotnet build --no-restore LibGit2Sharp.sln
- name: Test
run: dotnet test --no-build --verbosity normal LibGit2Sharp.sln