Skip to content

Commit

Permalink
ci: provide build job
Browse files Browse the repository at this point in the history
The code in this crate uses lots of conditional compilation for cross-platform capability.

Therefore, it's important before release that we make sure the code can build properly on both the
Windows and Unix OS families.
  • Loading branch information
jacderida committed Jun 16, 2023
1 parent 01c4202 commit feaa76e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@ env:
RUSTFLAGS: "-D warnings"

jobs:
# The code in this crate uses lots of conditional compilation for cross-platform capabilities.
# Therefore, it's important we make sure it can build on both the Windows and Unix OS families.
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
id: toolchain
with:
profile: minimal
toolchain: stable
override: true
- shell: bash
run: cargo build --all-targets --all-features
checks:
if: "!startsWith(github.event.pull_request.title, 'Automated version bump')"
name: Clippy & fmt
Expand Down

0 comments on commit feaa76e

Please sign in to comment.