Files
core-foundation-rs/.github/workflows/rust.yml
T
Jeff Muizelaar 4bd9ff3ca6 Add semver checks to CI
This won't catch everything but it's better than nothing
2023-06-20 11:16:40 -04:00

42 lines
799 B
YAML

name: Rust
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
env:
CARGO_TERM_COLOR: always
jobs:
semver:
runs-on: macos-11.0
steps:
- uses: actions/checkout@v2
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11.0]
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_result:
name: homu build finished
runs-on: ubuntu-latest
needs:
- "build"
steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"