rabbitizer/.github/workflows/make.yml

235 lines
5.8 KiB
YAML
Raw Normal View History

2023-06-10 14:38:33 +00:00
name: Build C api and run tests
# Build on every branch push, tag push, and pull request change:
on: [push, pull_request]
jobs:
2022-12-15 19:06:48 +00:00
build_repo:
2024-04-11 15:45:54 +00:00
name: Build repo
runs-on: ubuntu-latest
steps:
2024-04-11 15:45:54 +00:00
- name: Checkout reposistory
uses: actions/checkout@v4
2022-12-15 19:06:48 +00:00
2024-04-11 15:45:54 +00:00
- name: make
run: make -j $(nproc) WERROR=1
2022-12-15 19:06:48 +00:00
2024-04-11 15:45:54 +00:00
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: build/
2024-04-11 15:45:54 +00:00
build_info_checks:
name: Test - build_info_checks
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run build info checks
run: ./tests/run_build_info_checks.sh
logic_checks:
name: Test - logic_checks
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run logic checks
run: ./tests/run_logic_checks.sh
instruction_checks_all:
name: Test - instruction_checks_all
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
- name: test
run: tree build/
2024-04-11 15:45:54 +00:00
- name: Run instruction checks
run: ./tests/run_instruction_checks.sh
instruction_checks_jalr:
name: Test - instruction_checks_jalr
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run instruction check - jalr
run: ./build/tests/c/instruction_checks/jalr.elf
instruction_checks_plain_disassembly:
name: Test - instruction_checks_plain_disassembly
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run instruction check - plain_disassembly
run: ./build/tests/c/instruction_checks/plain_disassembly.elf
instruction_checks_r3000gte_disasm:
name: Test - instruction_checks_r3000gte_disasm
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run instruction check - r3000gte_disasm
run: ./build/tests/c/instruction_checks/r3000gte_disasm.elf
ALLEGREX support (#60) * setup ALLEGREX * more setup * clo * fix * Implement SPECIAL_RS and SPECIAL_SA instructions * more table placeholders * Implement bshfl instructions * Rename to R4000Allegrex * Implement SPECIAL instructions * Add tests * Remove some duplicated tests * Implement SPECIAL3 instructions * fix bug in test * update * Implement COPz * Implement SPECIAL2 instructions * Implement COP1 * Yeet cop3 * som tests * bvf, bvfl, bvt, bvtl * fix bshfl prefix * need to implement the vfpu registers * implement vt_7? * R4000AllegrexVF -> R4000AllegrexVScalar * Add test suite to compare with the sn toolchain decoding * more vfpu test cases * forgor this * I can't decide how to name these registers * Prepare tables for all register types * Fix typo * Implement vector scalar register operands * Implement quad registers * Fix tests? * svl.q, svr.q * Implement a bunch of vfpu0 instructions * implement registers for `.t` and `.p` instructions * Implement VFPU1 instructions * bleh * VFPU1, VFPU3 and `vcmp.` * Fix wrong register type on some instructions * start vfpu3 * Implement VFPU3 instructions * start categorizing VFPU4 * Categorize VFPU5 * VFPU6 identification * Identify VFPU7 * COP2 is weird * organize COP2 a bit * Add test cases for VFPU4 FMT * VFPU4 FMT2 stuff * VFPU4 FMT3 stuff * VFPU5 stuff * VFPU6 stuff * VFPU7 stuff * Implement COP2 instructions * Implement vmov, vabs and vneg * VPFU4 FMT0 FMT0 FMT0 implemented * VFPU FMT0 FMT0 FMT2 * vnrcp, vnsin, vrexp2 * vrnds, vrndi, vrndf1, vrndf2 * Change tests a bit * vf2h, vh2f, vsbz, vlgb * vuc2ifs, vc2i, vus2i, vs2i, vi2uc, vi2c, vi2us, vi2s * vsrt1, vsrt2, vbfy1, vbfy2, vocp, vsocp, vfad, vavg * vsrt3, vsrt4, vsgn * vmfvc and vmtvc placeholders * vt4444, vt5551, vt5650 * vcst placeholder * vf2in * vf2iz * vf2iu, vf2id, vi2f * vcmovt, vcmovf * vwbn.s, viim.s, vfim.s * vpfxs, vpfxt, vpfxd, vnop, vsync, vflush * vmmov, vmidt, vmzero, vmone * vrot * vmmul, vhtfm2, vtfm2, vhtfm3, vtfm3, vhtfm4, vtfm4, vmscl, vcrsp, vqmul * Implement matrix operands * fix matrix operands * Fix `illegal` tests * hack out a way to check the test cases are assemblable * test-fixing: branches * fix more test cases * fix vmfvc and vmtvc * more test fixing * vdiv and fix operand R323 * more test fixing * Fix matrix operands * implement vcmp comparisons * fix vsync2 * vsqrt and vrndf1 fixes * Implement "constant" operand for `vcst` * Add missing operand of vf2in, vf2iz, vf2iu, vf2id, vi2f * Add missing vcmovt and vcmovf operands * Add missing vwbn operand * Tests cases for vmmul * Fix vtfm2 * Implement "transpose matrix register" * Add placeholders for the remaining missing operands * Implement viim operand * Implement vrot code operand * placeholders for rp and wp operands * test cases for vpfxs, vpfxt and vpfxd * Properly implement rpx, rpy, rpz and rpw * Properly implement wpx, wpy, wpz and wpw operands * Implement vfim * changelog * readme * some cleanup * Restructure some tables * more table restructure * fix tests * more table yeeting * more cleanup * more cleanup * reanming * moar * fmt
2024-04-22 17:15:58 +00:00
instruction_checks_r4000allegrex_disasm:
name: Test - instruction_checks_r4000allegrex_disasm
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
- name: Make tests executable
run: chmod --recursive +x build/
- name: Run instruction check - r4000allegrex_disasm
run: ./build/tests/c/instruction_checks/r4000allegrex_disasm.elf
instruction_checks_r4000allegrex_vfpu_disasm:
name: Test - instruction_checks_r4000allegrex_vfpu_disasm
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
- name: Make tests executable
run: chmod --recursive +x build/
- name: Run instruction check - r4000allegrex_vfpu_disasm
run: ./build/tests/c/instruction_checks/r4000allegrex_vfpu_disasm.elf
2024-04-11 15:45:54 +00:00
instruction_checks_r5900_trunc_cvt:
name: Test - instruction_checks_r5900_trunc_cvt
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run instruction check - r5900_trunc_cvt
run: ./build/tests/c/instruction_checks/r5900_trunc_cvt.elf
instruction_checks_r5900_vcallms:
name: Test - instruction_checks_r5900_vcallms
needs: [build_repo]
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifact
path: build/
2022-12-19 15:20:32 +00:00
2024-04-11 15:50:09 +00:00
- name: Make tests executable
run: chmod --recursive +x build/
2024-04-11 15:45:54 +00:00
- name: Run instruction check - r5900_vcallms
run: ./build/tests/c/instruction_checks/r5900_vcallms.elf