Skip to content

Merge pull request #144 from LucioFranco/lucio/0.4.5 #142

Merge pull request #144 from LucioFranco/lucio/0.4.5

Merge pull request #144 from LucioFranco/lucio/0.4.5 #142

Workflow file for this run

name: publish
env:
NODE_VERSION: 18.x
NPM_REGISTRY: 'https://registry.npmjs.org'
RUST_VERSION: 1.78
on:
push:
tags:
- v*
jobs:
pack:
name: Pack (main)
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Pack
uses: neon-actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
github-release: true
macos-arm64-build:
name: Builds (macOS arm64)
strategy:
matrix:
target: [aarch64-apple-darwin]
runs-on: macos-13-xlarge
permissions:
contents: write
steps:
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
npm-publish: false
github-release: true
macos-x64-build:
name: Builds (macOS x64)
strategy:
matrix:
target: [x86_64-apple-darwin]
runs-on: macos-13
permissions:
contents: write
steps:
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
npm-publish: false
github-release: true
windows-builds:
name: Builds (Windows)
strategy:
matrix:
target: [x86_64-pc-windows-msvc]
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
npm-publish: false
github-release: true
other-builds:
name: Builds (other platforms)
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.18.x'
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
use-cross: true
npm-publish: false
github-release: true
publish:
name: Publish
needs: [pack, macos-arm64-build, macos-x64-build, windows-builds, other-builds]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish
uses: neon-actions/[email protected]
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
registry-url: ${{ env.NPM_REGISTRY }}
github-release: "*.tgz"