Silicon Chip #527
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test 2024-09-15 at 23:23:13 | |
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 |