Skip to content

Commit

Permalink
ci: Perform a cross platform build before publish
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
  • Loading branch information
sidcha committed Mar 9, 2024
1 parent a3d265b commit a96b472
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,32 @@ on:
- 'libosdp-sys-v*'
- 'libosdp-v*'
- 'osdpctl-v*'
workflow_dispatch:
inputs:
tags:
description: 'Tag'
required: true

jobs:
cross_platform_check:
name: Build libosdp_sys on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cargo build -p libosdp_sys

publish:
needs: [cross_platform_check]
name: Publish Crate
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit a96b472

Please sign in to comment.