forked from IronLanguages/ironpython3
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.28 KB
/
main.yml
File metadata and controls
49 lines (44 loc) · 1.28 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Install tools
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -yq install mono-vbnc dos2unix
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.0.100'
- name: Set Mono Version
if: matrix.os == 'macos-latest'
run: echo ::add-path::/Library/Frameworks/Mono.framework/Versions/6.4.0/bin
- name: Version Information
run: |
dotnet --info
try { mono --version } catch { }
shell: pwsh
- name: Build
run: pwsh make.ps1
- name: Package
run: pwsh make.ps1 package
- uses: actions/upload-artifact@master
with:
name: packages
path: Package/Release/Packages
- name: Test
run: |
Write-Host ${env:DOTNET_ROOT}
./make.ps1 -frameworks net45,netcoreapp3.0 test-all
env:
# Work around https://github.com/actions/setup-dotnet/issues/29
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/3.0.100/x64
shell: pwsh
# TODO: figure out how to also test on netcoreapp2.1