forked from antlr/antlr4
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (75 loc) · 2.12 KB
/
windows.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
71
72
73
74
75
76
77
name: Windows
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: [self-hosted, windows, x64]
strategy:
fail-fast: false
matrix:
TARGET: [java, python2, python3, javascript, csharp, dart, go, php]
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.5.4
# fails due to permissions, use global install
# - name: Set up Python 2
# if: matrix.TARGET == 'python2'
# uses: actions/setup-python@v2
# with:
# python-version: '2.x'
# architecture: 'x64'
# fails due to permissions, use global install
# - name: Set up Python 3
# if: matrix.TARGET == 'python3'
# uses: actions/setup-python@v2
# with:
# python-version: '3.x'
# architecture: 'x64'
- name: Set up Node 14
if: matrix.TARGET == 'javascript'
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Setup Dotnet 3.1 and 5.0
if: matrix.TARGET == 'csharp'
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
# fails due to os (Linux only), use global install
# - name: Setup Dart 2.12.1
# uses: dart-lang/setup-dart@v1
# with:
# sdk: 2.12.1
- name: Setup Go 1.13.1
if: matrix.TARGET == 'go'
uses: actions/setup-go@v2
with:
go-version: '^1.13.1'
# requires manually setting up pwsh
# fails due to incorrect script (missing printf)
# - name: Setup PHP 8.2
# if: matrix.TARGET == 'php'
# uses: shivammathur/setup-php@v2
# with:
# php-version: '8.2'
# extensions: mbstring
# tools: composer
- name: Build tool with Maven
run: mvn install -DskipTests=true -Darguments="-Dmaven.javadoc.skip=true" -B -V
- name: Test with Maven
run: .github/scripts-windows/run-tests-${{ matrix.TARGET }}.cmd
env:
TARGET: ${{ matrix.TARGET }}