diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-07-29 12:50:53 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-07-29 13:03:08 -0400 |
commit | 43269c3178abc23023d28ea6f867dc9e3f81e87d (patch) | |
tree | d709e4e70922876f94d7a3e3c3faed3cc96a952f /.github | |
parent | 8971cb3542f818aeb66074482c4fa1efe6e33527 (diff) | |
download | rbw-43269c3178abc23023d28ea6f867dc9e3f81e87d.tar.gz rbw-43269c3178abc23023d28ea6f867dc9e3f81e87d.zip |
add github actions config
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yaml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..f7353d2 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,80 @@ +name: tests +on: + push: + branches: [main] + pull_request: {} +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + - uses: actions-rs/cargo + with: + command: build + args: --all-targets + build-musl: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + - uses: actions-rs/cargo + with: + command: build + args: --all-targets --target x86_64-unknown-linux-musl + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + - uses: actions-rs/cargo + with: + command: build + args: --all-targets + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + - uses: actions-rs/cargo + with: + command: test + test-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + - uses: actions-rs/cargo + with: + command: test + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + with: + components: clippy, rustfmt + - uses: actions-rs/cargo + with: + command: install + args: install --locked cargo-deny + - uses: actions-rs/clippy-check + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-targets + - uses: actions-rs/cargo + with: + command: fmt + args: --check + - uses: actions-rs/cargo + with: + command: deny + args: check + doc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout + - uses: actions-rs/toolchain + - uses: actions-rs/cargo + with: + command: doc |