bliss-rs/.github/workflows/build.yml
Anton dbf8c5daf7
Some checks failed
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Failing after 20s
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Failing after 22s
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Failing after 27s
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Failing after 30s
Remove sudo (command not found)
2023-12-27 13:03:29 +02:00

43 lines
1008 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 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