| 1 | name: ci |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | env: |
| 6 | CARGO_TERM_COLOR: always |
| 7 | |
| 8 | jobs: |
| 9 | debug: |
| 10 | runs-on: ubuntu-22.04 |
| 11 | steps: |
| 12 | - uses: actions/checkout@v3 |
| 13 | - name: Build |
| 14 | run: cargo build --verbose |
| 15 | - name: Run tests |
| 16 | run: cargo test --verbose |
| 17 | |
| 18 | release: |
| 19 | runs-on: ubuntu-22.04 |
| 20 | steps: |
| 21 | - uses: actions/checkout@v3 |
| 22 | - name: Build |
| 23 | run: cargo build --verbose --release |
| 24 | - name: Run tests |
| 25 | run: cargo test --verbose --release |
| 26 | |
| 27 | debug-nostd: |
| 28 | runs-on: ubuntu-22.04 |
| 29 | steps: |
| 30 | - uses: actions/checkout@v3 |
| 31 | - name: Build |
| 32 | run: cargo build --verbose --no-default-features --features alloc |
| 33 | - name: Run tests |
| 34 | run: cargo test --verbose --no-default-features --features alloc |
| 35 | |
| 36 | release-nostd: |
| 37 | runs-on: ubuntu-22.04 |
| 38 | steps: |
| 39 | - uses: actions/checkout@v3 |
| 40 | - name: Build |
| 41 | run: cargo build --verbose --release --no-default-features --features alloc |
| 42 | - name: Run tests |
| 43 | run: cargo test --verbose --release --no-default-features --features alloc |
| 44 | |
| 45 | c_api: |
| 46 | runs-on: ubuntu-22.04 |
| 47 | steps: |
| 48 | - uses: actions/checkout@v3 |
| 49 | - name: Run c_api test |
| 50 | run: cd c_api && ./run_test.sh |
| 51 | |
| 52 | fmt: |
| 53 | runs-on: ubuntu-22.04 |
| 54 | steps: |
| 55 | - uses: actions/checkout@v3 |
| 56 | - name: Format |
| 57 | run: cargo fmt --check |