Skip to content

Commit

Permalink
.github: Add a new workflow to cross compile and build
Browse files Browse the repository at this point in the history
In the past, we have seen that there were failure while cross compiling
the crate and due to which we broke pipeline of the dependent crates.
Thus, add a cross compile build test for the crate to avoid such
breakage in the future.

Signed-off-by: Jinank Jain <[email protected]>
  • Loading branch information
jinankjain authored and russell-islam committed Apr 30, 2024
1 parent 2e72dc1 commit ba27bd6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: MSHV Build test
on: [pull_request, create]

jobs:
build:
name: Build test for MSHV crate
strategy:
matrix:
platform:
- target: x86_64-unknown-linux-gnu
command: build

- target: aarch64-unknown-linux-musl
command: build

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--release"

0 comments on commit ba27bd6

Please sign in to comment.