Merge branch 'master' of https://gitlab.eduxiji.net/202310055201721/c… #112
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
name: Test functional | |
on: [push] | |
jobs: | |
test-asm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Bison and Flex | |
run: sudo apt-get install bison flex | |
- name: Generate parser | |
run: bash scripts/yacc_gen.sh | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Flatten and compile | |
run: python scripts/execute.py --no-test | |
- name: Setup QEMU | |
run: sudo apt-get install qemu-user | |
- name: Setup GCC | |
run: sudo apt-get install gcc-riscv64-linux-gnu | |
- name: Test functional assembly | |
run: python scripts/execute.py --timeout 30 --no-compile --testcase-dir './ci-tests' | |
- name: Report | |
run: cat output/result.md > $GITHUB_STEP_SUMMARY | |
- name: Package test result | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output-asm | |
path: output | |
test-ir: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Bison and Flex | |
run: sudo apt-get install bison flex | |
- name: Generate parser | |
run: bash scripts/yacc_gen.sh | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Flatten and compile | |
run: python scripts/execute.py --no-test | |
- name: Setup QEMU | |
run: sudo apt-get install qemu-user | |
- name: Setup GCC | |
run: sudo apt-get install gcc-riscv64-linux-gnu | |
- name: Test functional IR | |
run: python scripts/execute.py --timeout 30 --no-compile --testcase-dir './ci-tests' --test-ir | |
- name: Report | |
run: cat output/result.md > $GITHUB_STEP_SUMMARY | |
- name: Package test result | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output-ir | |
path: output | |
test-ir-optimized: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Bison and Flex | |
run: sudo apt-get install bison flex | |
- name: Generate parser | |
run: bash scripts/yacc_gen.sh | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Flatten and compile | |
run: python scripts/execute.py --no-test | |
- name: Setup QEMU | |
run: sudo apt-get install qemu-user | |
- name: Setup GCC | |
run: sudo apt-get install gcc-riscv64-linux-gnu | |
- name: Test hidden functional IR | |
run: python scripts/execute.py --timeout 30 --no-compile --testcase-dir './ci-tests' --test-ir --opt-level 1 | |
- name: Report | |
run: cat output/result.md > $GITHUB_STEP_SUMMARY | |
- name: Package test result | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output-ir-optimized | |
path: output | |