-
Notifications
You must be signed in to change notification settings - Fork 20
100 lines (82 loc) · 2.55 KB
/
ci.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
name: Tests
on: [push, pull_request]
jobs:
style:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup MX
run: |
./som --setup mx
echo "PATH=$PATH:`pwd`/../mx" >> "$GITHUB_ENV"
- name: Get LabsJDK
run: |
./som --setup labsjdk
- name: Download Eclipse
run: |
export ECLIPSE_TAR=eclipse.tar.gz
export ECLIPSE_URL=https://archive.eclipse.org/eclipse/downloads/drops4/R-4.30-202312010110/eclipse-SDK-4.30-linux-gtk-x86_64.tar.gz
curl -L ${ECLIPSE_URL} -o ${ECLIPSE_TAR}
tar --warning=no-unknown-keyword -C ${GITHUB_WORKSPACE}/.. -xzf ${ECLIPSE_TAR}
- name: Install Black and PyLint
run: |
pip install black pylint==2.4
- name: Run Style Gate
run: |
export ECLIPSE_EXE=${GITHUB_WORKSPACE}/../eclipse/eclipse
mx gate --tags style
test_som:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup MX
run: |
./som --setup mx
echo "PATH=$PATH:`pwd`/../mx" >> "$GITHUB_ENV"
- name: Get LabsJDK and Get Graal
run: |
./som --setup labsjdk
mx sforceimport
rm libs/jvmci || true
./som --setup labsjdk
- name: Compile TruffleSOM
run: |
mx build
- name: Tests
run: |
mx tests-junit
mx tests-som
- name: Build native-image tool
run: |
mx build-native-image-tool
- name: Test Object Storage System
run: |
mx build-native-obj-test
./som-obj-storage-tester
- name: Tool Tests
continue-on-error: true
run: |
mx tests-nodestats
mx tests-coverage
- name: SomSom Tests
run: |
export JAVA_HOME=$JAVA_HOME_17_X64
./som -G -cp core-lib/Smalltalk:core-lib/TestSuite:core-lib/SomSom/src/compiler:core-lib/SomSom/src/vm:core-lib/SomSom/src/vmobjects:core-lib/SomSom/src/interpreter:core-lib/SomSom/src/primitives \
core-lib/SomSom/tests/SomSomTests.som
- name: Checkout AWFY
uses: actions/checkout@v4
with:
repository: smarr/are-we-fast-yet
path: are-we-fast-yet
- name: AWFY Test Run
run: |
pwd
export JAVA_HOME=$JAVA_HOME_17_X64
pip install ReBench
rebench awfy-test.conf