Repository navigation
78 lines (64 loc) · 2.16 KB
/
Copy pathci.yml
File metadata and controls
78 lines (64 loc) · 2.16 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
name: Tests
on: [push, pull_request]
jobs:
part1:
runs-on: ubuntu-24.04 # ubuntu-latest
steps:
- &checkout
name: Checkout
uses: actions/checkout@v7
with:
submodules: true
- &setup-java
uses: actions/setup-java@v6
with:
distribution: temurin
java-version: '25'
- name: Tests
run: |
ant test
- name: SomSom Tests
run: |
./som.sh -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
part2:
runs-on: ubuntu-24.04 # ubuntu-latest
steps:
- *checkout
- name: Compile
run: |
ant jar
- name: Integration Tests
run: |
python -m pip install --upgrade pip
pip install pytest
export VM=./som.sh
export CLASSPATH=Smalltalk
export AWFY=Examples/AreWeFastYet/Core
export TEST_EXPECTATIONS=./integration-tests.yml
pytest --tb=short core-lib/IntegrationTests
- name: CheckStyle
run: |
ant checkstyle
- name: Download Eclipse
run: |
export ECLIPSE_TAR=eclipse.tar.gz
export ECLIPSE_URL='https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.41-202608281142/eclipse-SDK-4.41-linux-gtk-x86_64.tar.gz&r=1'
wget --progress=dot:giga ${ECLIPSE_URL} -O ${ECLIPSE_TAR}
tar -C ${GITHUB_WORKSPACE}/.. -xzf ${ECLIPSE_TAR}
# Setup Java only here, use the system java for compiling
# then we don't have to worry about env vars for rebench
- *setup-java
- name: Check Eclipse Format
run: |
export ECLIPSE_EXE=${GITHUB_WORKSPACE}/../eclipse/eclipse
ant eclipseformat
- name: Checkout AWFY
uses: actions/checkout@v7
with:
repository: smarr/are-we-fast-yet
path: are-we-fast-yet
- name: AWFY Test Run
run: |
pip install ReBench
rebench -D awfy-test.conf