-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (58 loc) · 1.69 KB
/
vostok.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build & Test
on: [push, workflow_dispatch]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net471, netcoreapp2.1, netcoreapp3.1, net5.0]
exclude:
- os: ubuntu-latest
framework: net471
runs-on: ${{ matrix.os }}
steps:
- name: Install .NET
uses: actions/setup-dotnet@main
- name: Download Cement
run: |
Invoke-WebRequest "https://github.com/skbkontur/cement/releases/download/v1.0.58/63d70a890a8a69703c066965196021afb7a793c1.zip" -Out "cement.zip"
Expand-Archive "cement.zip" -Force -DestinationPath "./cement"
shell: pwsh
- name: Install Cement
run: |
cd ./cement
cd ./dotnet
chmod +x ./install.sh
./install.sh
~/bin/cm --version
shell: bash
if: runner.os != 'Windows'
- name: Install Cement
run: |
cd ./cement
cd ./dotnet
./install.cmd
cm --version
shell: cmd
if: runner.os == 'Windows'
- name: Checkout
uses: actions/checkout@main
- name: Init
run: |
cd ..
~/bin/cm init
shell: bash
- name: Update deps
run: |
~/bin/cm update-deps
shell: bash
- name: Build deps
run: |
~/bin/cm build-deps
shell: bash
- name: Build
run: |
dotnet build -c Release
- name: Test
run: dotnet test -c Release --logger GitHubActions --framework ${{ matrix.framework }}