-
Notifications
You must be signed in to change notification settings - Fork 1
119 lines (95 loc) · 2.5 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
# Test 2024-09-20 at 18:14:28
name: Test
run-name: Silicon Chip
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: [Ban, Chip, Memory, Mjaf, Node, RiscV, Stuck, Unary]
steps:
- uses: actions/checkout@v3
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
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 Ban
if: matrix.task == 'Ban'
run: |
java -cp Classes com/AppaApps/Silicon/Ban
- name: Test Memory
if: matrix.task == 'Memory'
run: |
java -cp Classes com/AppaApps/Silicon/Memory
- name: Test Mjaf
if: matrix.task == 'Mjaf'
run: |
java -cp Classes com/AppaApps/Silicon/Mjaf
- name: Test Big
if: matrix.task == 'Node'
run: |
java -cp Classes com/AppaApps/Silicon/Node
- name: Test Risc V
if: matrix.task == 'RiscV'
run: |
java -cp Classes com/AppaApps/Silicon/RiscV
- name: Test Stuck
if: matrix.task == 'Stuck'
run: |
# java -cp Classes com/AppaApps/Silicon/Stuck
- name: Test Unary
if: matrix.task == 'Unary'
run: |
java -cp Classes com/AppaApps/Silicon/Unary
- name: Cpan
if: matrix.task == 'Chip'
run: sudo cpan install -T Data::Dump Data::Table::Text GDS2 Digest::SHA1
- name: Test silicon chips
if: matrix.task == 'Chip'
run: |
java -cp Classes com/AppaApps/Silicon/Chip
- name: Files
if: matrix.task == 'Chip'
run: |
tree -h
- name: Upload artifact
uses: actions/upload-artifact@v4
if: matrix.task == 'Chip'
with:
name: Chip
path: .
- name: Upload GDS2
if: matrix.task == 'ChipSuppress'
run: |
rm -f gds.zip
zip gds gds/*
ls -lah gds.zip
git config user.name "aaa"
git config user.email "[email protected]"
git pull
git add gds.zip
git commit -m "GDS2 tape-out"
git push