-
Notifications
You must be signed in to change notification settings - Fork 528
88 lines (85 loc) · 2.58 KB
/
Copy pathci.yml
File metadata and controls
88 lines (85 loc) · 2.58 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI
on:
push:
branches:
- master
tags-ignore:
- '**'
pull_request:
branches:
- master
jobs:
linux:
name: Linux (.NET)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: build
skip_env: SkipIntegrationTests=true
- name: flaky
skip_env: PAKET_TESTSUITE_FLAKYTESTS=true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: |
~/.nuget/packages
packages
key: ${{ runner.os }}-nuget-${{ hashFiles('paket.lock', 'paket.dependencies', 'global.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Install Mono
run: sudo apt-get update && sudo apt-get install --yes mono-complete
- name: Install build SDK and integration test runtime
run: |
curl --fail --silent --show-error --location https://dot.net/v1/dotnet-install.sh --output /tmp/dotnet-install.sh
bash /tmp/dotnet-install.sh --version 10.0.400 --install-dir "$HOME/.local/share/dotnetcore"
bash /tmp/dotnet-install.sh --channel 8.0 --runtime dotnet --install-dir "$HOME/.local/share/dotnetcore"
- name: Build and test
env:
EnableWindowsTargeting: true
PAKET_TESTSUITE_FLAKYTESTS: false
run: |
export ${{ matrix.skip_env }}
./build.sh BuildPackage < /dev/null
windows:
name: Windows (.NET)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure git autocrlf
run: git config --global core.autocrlf input
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: |
~/.nuget/packages
packages
key: ${{ runner.os }}-nuget-${{ hashFiles('paket.lock', 'paket.dependencies', 'global.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: .\build.cmd BuildPackage
- name: Upload build artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: bin
path: bin
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: TestResults
path: tests_result/**/*.trx