Skip to content

dist ffi

dist ffi #13

Workflow file for this run

name: dist ffi
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
dist:
if: "startsWith(github.ref, 'refs/tags/')"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-20.04 ]
steps:
- uses: actions/checkout@v3
- uses: hustcer/setup-nu@v3
with:
version: '0.95.0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- if: "matrix.os == 'macos-latest'"
run: |
nu -n -c "use action.nu *; build ffi aarch64-apple-darwin x86_64-apple-darwin"
env:
MACOSX_DEPLOYMENT_TARGET: 10.11
- if: "matrix.os == 'windows-latest'"
run: |
nu -n -c "use action.nu *; rustup override set 1.75.0; build ffi x86_64-pc-windows-msvc i686-pc-windows-msvc"
- if: "matrix.os == 'ubuntu-20.04'"
run: |
nu -n -c "overlay use action.nu; build ffi x86_64-unknown-linux-gnu"
env:
RUSTFLAGS: '-C strip=debuginfo'
- uses: softprops/action-gh-release@v1
with:
files: |
ipmb-ffi/*.zip
target/*.zip
target/*.pdb
target/*.so.dwp