bliss-rs/.github/workflows/build.yml

43 lines
1018 B
YAML
Raw Normal View History

2023-12-27 12:57:08 +02:00
name: Build binaries and publish
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build-linux:
runs-on: node-16
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
steps:
- name: Packages
run: sudo apt-get update && sudo apt-get install build-essential yasm libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev libfftw3-dev ffmpeg
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.target }}
uses: actions-rs/toolchain@v2
with:
toolchain: stable
target: ${{ matrix.target }}
override: false
- run: npm install
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: binary
path: index.node