-
Notifications
You must be signed in to change notification settings - Fork 26
167 lines (160 loc) · 5.23 KB
/
scalatest.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: 'Run ScalaTest'
on:
push:
branches:
- '**'
tags-ignore:
- dev-prerelease
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Compile:
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)
runs-on: ubuntu-latest
steps:
- name: Checkout VerCors
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Cache dependencies and compilation
uses: actions/cache@v4
with:
path: out
key: vercors-ci-ubuntu-${{ hashFiles('build.sc') }}-${{ hashFiles('src') }}
restore-keys: |
vercors-ci-ubuntu-${{ hashFiles('build.sc') }}
vercors-ci-ubuntu
- name: Enable VCLLVM compilation
run: touch .include-vcllvm
- name: Compile
run: ./mill -j 0 vercors.allTests.assembly + vercors.vcllvm.compile
- name: Upload VerCors
uses: actions/upload-artifact@v4
with:
name: allTests
path: out/vercors/allTests/assembly.dest/out.jar
- name: Upload VCLLVM
uses: actions/upload-artifact@v4
with:
name: vcllvm
path: out/vercors/vcllvm/compile.dest/vcllvm
- name: Delete Uncached Files
run: |
find out -type f -name upstreamAssembly.json -print -exec rm -rf {} +
find out -type d -name upstreamAssembly.dest -print -exec rm -rf {} +
find out -type f -name assembly.json -print -exec rm -rf {} +
find out -type d -name assembly.dest -print -exec rm -rf {} +
find out -type d -name "mill-worker-*" -print -exec rm -rf {} +
rm -rf out/mill
rm -rf out/mill-build/mill
rm -rf out/mill-launcher
ScalaTestWindowsBasic:
needs: "Compile"
runs-on: windows-latest
steps:
- name: Checkout VerCors
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v2
with:
path: ${{ runner.temp }}/llvm
key: llvm-10.0
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "10.0"
directory: ${{ runner.temp }}/llvm
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Download VerCors
uses: actions/download-artifact@v4
with:
name: allTests
path: '.'
- name: ls
run: ls
- name: Run scalatest
run: java -Xss64m -cp "out.jar;res/universal/deps;res/universal/res" org.scalatest.tools.Runner -o -u report -s vct.test.integration.examples.BasicExamplesSpec
- name: Upload test reports
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-report-windows-latest
path: 'report/**/TEST-*.xml'
ScalaTestMacOsBasic:
needs: "Compile"
runs-on: macos-latest
steps:
- name: Checkout VerCors
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Install clang
run: brew install llvm
- name: Download VerCors
uses: actions/download-artifact@v4
with:
name: allTests
path: '.'
- name: ls
run: ls
- name: Run scalatest
run: java -Xss64m -cp out.jar:res/universal/deps:res/universal/res org.scalatest.tools.Runner -o -u report -s vct.test.integration.examples.BasicExamplesSpec
- name: Upload test reports
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-report-macos-latest
path: 'report/**/TEST-*.xml'
ScalaTest:
needs: "Compile"
strategy:
fail-fast: false
matrix:
batch: ["-n MATRIX[0]", "-n MATRIX[1]", "-n MATRIX[2]", "-n MATRIX[3]", "-n MATRIX[4]", "-n MATRIX[5]", "-n MATRIX[6]", "-n MATRIX[7]", "-l MATRIX"]
runs-on: ubuntu-latest
steps:
- name: Checkout VerCors
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Download VerCors
uses: actions/download-artifact@v4
with:
name: allTests
path: '.'
- name: Download VCLLVM
uses: actions/download-artifact@v4
with:
name: vcllvm
path: '.'
- name: Make VCLLVM executable
run: chmod +x vcllvm
- name: ls
run: ls -lasFhR
- name: Run scalatest
run: java -Xss64m -Xmx2G -cp out.jar:res/universal/deps:res/universal/res:. org.scalatest.tools.Runner -R out.jar -o -u report -w vct ${{matrix.batch}}
- name: Upload test reports
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-report-ubuntu-latest-${{ matrix.batch }}
path: 'report/**/TEST-*.xml'