bliss-rs/.github/workflows/build.yml
Anton fec580dc52
Some checks failed
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Waiting to run
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Waiting to run
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Failing after 20m4s
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Has been cancelled
Add -y flag to the APT command
2023-12-27 13:05:25 +02:00

43 lines
1013 B
YAML

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: apt-get update && apt-get install -yqq build-essential yasm libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev libfftw3-dev ffmpeg
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.target }}
uses: actions-rs/toolchain@v1
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