name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
ext: .so
- os: macos-latest
target: aarch64-apple-darwin
ext: .dylib
- os: windows-latest
target: x86_64-pc-windows-msvc
ext: .dll
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
target/release/libvisio_rs${{ matrix.ext }}
target/release/visio2svg*
include/libvisio_rs.h