forked from IronLanguages/ironpython3
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (78 loc) · 2.01 KB
/
main.yml
File metadata and controls
91 lines (78 loc) · 2.01 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
89
90
91
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-22.04, macos-14]
steps:
# Prerequisites
- name: Install tools
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get -yq install mono-vbnc dos2unix
- uses: actions/checkout@v4
with:
submodules: true
# Setup .NET
- name: Setup .NET 10.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
# CI debug information
- name: Version Information
run: |
dotnet --info
try { msbuild -version } catch { }
try { mono --version } catch { }
shell: pwsh
# Build & package
- name: Build
run: pwsh make.ps1
- name: Package
run: pwsh make.ps1 package
# Upload package
- uses: actions/upload-artifact@v4
with:
name: packages-${{ matrix.os }}
path: Package/Release/Packages
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-22.04, macos-14]
framework: ['net462', 'net8.0', 'net10.0']
steps:
# Prerequisites
- uses: actions/checkout@v4
with:
submodules: true
# Setup .NET
- name: Setup .NET 10.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
# Build & Test
- name: Build
run: pwsh make.ps1
- name: Test (${{ matrix.framework }})
run: ./make.ps1 -frameworks ${{ matrix.framework }} test-all
shell: pwsh