72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
|
|
name: per-push tests
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
build-components:
|
||
|
|
runs-on: docker
|
||
|
|
container:
|
||
|
|
image: rustlang/rust:nightly
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: compile components
|
||
|
|
run: |
|
||
|
|
cargo build --lib
|
||
|
|
cargo build --bin decomposer
|
||
|
|
|
||
|
|
test-frontend:
|
||
|
|
needs: [build]
|
||
|
|
runs-on: docker
|
||
|
|
container:
|
||
|
|
image: rustlang/rust:nightly
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: test lexer
|
||
|
|
run: cargo test lexer
|
||
|
|
- name: test parser
|
||
|
|
run: cargo test parser
|
||
|
|
|
||
|
|
timed-decomposer-parse:
|
||
|
|
needs: [test-frontend]
|
||
|
|
runs-on: docker
|
||
|
|
container:
|
||
|
|
image: rustlang/rust:nightly
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: build decomposer
|
||
|
|
run: cargo build --bin decomposer
|
||
|
|
- name: download test scheme source
|
||
|
|
run: curl https://raw.githubusercontent.com/ecraven/r7rs-benchmarks/refs/heads/master/src/compiler.scm --output test.scm
|
||
|
|
- name: time parsing of test source
|
||
|
|
run: cargo run --bin decomposer -- -t test.scm
|
||
|
|
|
||
|
|
test-utility:
|
||
|
|
needs: [build]
|
||
|
|
runs-on: docker
|
||
|
|
container:
|
||
|
|
image: rustlang/rust:nightly
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
users: actions/checkout@v4
|
||
|
|
- name: test number package
|
||
|
|
run: cargo test number
|
||
|
|
- name: test double stack data type
|
||
|
|
run: cargo test stackstack
|
||
|
|
- name: test hashmap data type
|
||
|
|
run: cargo test hmap
|
||
|
|
|
||
|
|
test-backend:
|
||
|
|
needs: [build]
|
||
|
|
runs-on: docker
|
||
|
|
container:
|
||
|
|
image: rustlang/rust:nightly
|
||
|
|
steps:
|
||
|
|
- name: checkout code
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: test instruction decoding
|
||
|
|
run: cargo test util # this is instruction decoding code
|
||
|
|
|