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

41 lines
886 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
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:
- name: Switch toolchain
run: rustup default stable-${{ matrix.target }}
2023-12-27 12:57:08 +02:00
- uses: actions/checkout@v4
2023-12-27 12:57:08 +02:00
- run: npm install
- run: npm run build -- --release
2023-12-27 12:57:08 +02:00
- uses: actions/upload-artifact@v3
with:
name: binary-${{ matrix.target }}
2023-12-27 12:57:08 +02:00
path: index.node