-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (46 loc) · 1.1 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
# Test 2024-11-07 at 22:01:09
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, Test]
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: 'JDK 22'
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
- 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 Test
if: matrix.task == 'Test'
run: |
java -cp Classes com/AppaApps/Silicon/Test