Skip to content

fix: add NIF version features to Cargo.toml for precompilation #2

fix: add NIF version features to Cargo.toml for precompilation

fix: add NIF version features to Cargo.toml for precompilation #2

Workflow file for this run

name: Build precompiled NIFs
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build_release:
name: NIF ${{ matrix.nif }} - ${{ matrix.job.target }}
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
matrix:
nif: ["2.15", "2.16", "2.17"]
job:
- { target: aarch64-apple-darwin, os: macos-14 }
- { target: x86_64-apple-darwin, os: macos-13 }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-22.04, use-cross: true }
- { target: aarch64-unknown-linux-musl, os: ubuntu-22.04, use-cross: true }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-22.04 }
- { target: x86_64-unknown-linux-musl, os: ubuntu-22.04, use-cross: true }
- { target: x86_64-pc-windows-gnu, os: windows-2022 }
- { target: x86_64-pc-windows-msvc, os: windows-2022 }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build precompiled NIF
uses: philss/rustler-precompiled-action@v1.1.4
with:
project-name: signer_nif
project-dir: native/signer
project-version: ${{ github.ref_name }}
target: ${{ matrix.job.target }}
nif-version: ${{ matrix.nif }}
use-cross: ${{ matrix.job.use-cross }}
variant: ""
- name: Upload artifacts to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
native/signer/signer_nif-*