-
Notifications
You must be signed in to change notification settings - Fork 1
187 lines (130 loc) · 3.99 KB
/
main.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# Test 2025-02-02 at 18:53:59
name: Test
run-name: btreeBlock
on:
push:
paths:
- '**/main.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
permissions: write-all
runs-on: ubuntu-latest
strategy:
matrix:
task: [Btree, BtreePA, BtreeSA, BtreeSML, BtreeSP, BtreeStuck, BtreeStuckStatic, If, Layout, Memory, MemoryLayout, MemoryLayoutPA, Program, ProgramPA, Stuck, StuckPA, StuckSA, StuckSML, StuckSP, StuckStatic, Test, Verilog]
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: 'JDK 22'
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
- name: Verilog install
if: matrix.task == 'BtreePA'
run: |
sudo apt install iverilog
- name: Install Tree
run:
sudo apt install tree
- name: Position files in package
run: |
mkdir -p com/AppaApps/Silicon
cp `find . -name "*.java"` com/AppaApps/Silicon
- name: Files
run:
tree
- name: Compile
run: |
javac -g -d Classes -cp Classes `find com/AppaApps/Silicon -name "*.java"`
- name: Test Btree
if: matrix.task == 'Btree'
run: |
java -cp Classes com/AppaApps/Silicon/Btree
- name: Test BtreePA
if: matrix.task == 'BtreePA'
run: |
java -cp Classes com/AppaApps/Silicon/BtreePA
- name: Test BtreeSA
if: matrix.task == 'BtreeSA'
run: |
java -cp Classes com/AppaApps/Silicon/BtreeSA
- name: Test BtreeSML
if: matrix.task == 'BtreeSML'
run: |
java -cp Classes com/AppaApps/Silicon/BtreeSML
- name: Test BtreeSP
if: matrix.task == 'BtreeSP'
run: |
java -cp Classes com/AppaApps/Silicon/BtreeSP
- name: Test BtreeStuck
if: matrix.task == 'BtreeStuck'
run: |
java -cp Classes com/AppaApps/Silicon/BtreeStuck
- name: Test BtreeStuckStatic
if: matrix.task == 'BtreeStuckStatic'
run: |
java -cp Classes com/AppaApps/Silicon/BtreeStuckStatic
- name: Test If
if: matrix.task == 'If'
run: |
java -cp Classes com/AppaApps/Silicon/If
- name: Test Layout
if: matrix.task == 'Layout'
run: |
java -cp Classes com/AppaApps/Silicon/Layout
- name: Test Memory
if: matrix.task == 'Memory'
run: |
java -cp Classes com/AppaApps/Silicon/Memory
- name: Test MemoryLayout
if: matrix.task == 'MemoryLayout'
run: |
java -cp Classes com/AppaApps/Silicon/MemoryLayout
- name: Test MemoryLayoutPA
if: matrix.task == 'MemoryLayoutPA'
run: |
java -cp Classes com/AppaApps/Silicon/MemoryLayoutPA
- name: Test Program
if: matrix.task == 'Program'
run: |
java -cp Classes com/AppaApps/Silicon/Program
- name: Test ProgramPA
if: matrix.task == 'ProgramPA'
run: |
java -cp Classes com/AppaApps/Silicon/ProgramPA
- name: Test Stuck
if: matrix.task == 'Stuck'
run: |
java -cp Classes com/AppaApps/Silicon/Stuck
- name: Test StuckPA
if: matrix.task == 'StuckPA'
run: |
java -cp Classes com/AppaApps/Silicon/StuckPA
- name: Test StuckSA
if: matrix.task == 'StuckSA'
run: |
java -cp Classes com/AppaApps/Silicon/StuckSA
- name: Test StuckSML
if: matrix.task == 'StuckSML'
run: |
java -cp Classes com/AppaApps/Silicon/StuckSML
- name: Test StuckSP
if: matrix.task == 'StuckSP'
run: |
java -cp Classes com/AppaApps/Silicon/StuckSP
- name: Test StuckStatic
if: matrix.task == 'StuckStatic'
run: |
java -cp Classes com/AppaApps/Silicon/StuckStatic
- name: Test Test
if: matrix.task == 'Test'
run: |
java -cp Classes com/AppaApps/Silicon/Test
- name: Test Verilog
if: matrix.task == 'Verilog'
run: |
java -cp Classes com/AppaApps/Silicon/Verilog