Skip to content

Merge branch 'master' of https://gitlab.eduxiji.net/202310055201721/c… #122

Merge branch 'master' of https://gitlab.eduxiji.net/202310055201721/c…

Merge branch 'master' of https://gitlab.eduxiji.net/202310055201721/c… #122

Workflow file for this run

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