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
|
2023-12-27 19:56:07 +02:00
|
|
|
container:
|
|
|
|
image: gitea.antonlyap.pp.ua/antonlyap/bliss-rs/node-rust:latest
|
|
|
|
credentials:
|
|
|
|
username: antonlyap
|
|
|
|
password: ${{ secrets.ACCESS_TOKEN }}
|
2023-12-27 12:57:08 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
target:
|
|
|
|
- x86_64-unknown-linux-gnu
|
|
|
|
- x86_64-unknown-linux-musl
|
|
|
|
- aarch64-unknown-linux-gnu
|
|
|
|
- aarch64-unknown-linux-musl
|
|
|
|
|
|
|
|
steps:
|
2023-12-27 19:56:07 +02:00
|
|
|
- name: Switch toolchain
|
|
|
|
run: rustup default stable-${{ matrix.target }}
|
2023-12-27 12:57:08 +02:00
|
|
|
|
2023-12-27 19:56:07 +02:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-27 12:57:08 +02:00
|
|
|
|
|
|
|
- run: npm install
|
2023-12-27 19:56:07 +02:00
|
|
|
- run: npm run build -- --release
|
2023-12-27 12:57:08 +02:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-12-27 19:56:07 +02:00
|
|
|
name: binary-${{ matrix.target }}
|
2023-12-27 12:57:08 +02:00
|
|
|
path: index.node
|