| 1 | name: Build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [master] |
| 6 | tags: |
| 7 | - "v*" |
| 8 | pull_request: |
| 9 | branches: [master] |
| 10 | |
| 11 | env: |
| 12 | CARGO_TERM_COLOR: always |
| 13 | |
| 14 | jobs: |
| 15 | check-links: |
| 16 | runs-on: ubuntu-latest |
| 17 | steps: |
| 18 | - uses: actions/checkout@v4 |
| 19 | - name: Markup Link Checker (mlc) |
| 20 | uses: becheran/mlc@v1 |
| 21 | |
| 22 | build: |
| 23 | runs-on: ubuntu-latest |
| 24 | steps: |
| 25 | - uses: actions/checkout@v4 |
| 26 | - name: Build |
| 27 | run: cargo build --verbose |
| 28 | - name: Run tests |
| 29 | run: cargo test --verbose |
| 30 | - name: Release |
| 31 | uses: softprops/action-gh-release@v2 |
| 32 | if: startsWith(github.ref, 'refs/tags/') |