bliss-rs/.github/workflows/build.yml
Anton ac7c9463b4
Some checks failed
Build binaries and publish / build-linux (aarch64-unknown-linux-gnu) (push) Failing after 9m33s
Build binaries and publish / build-linux (aarch64-unknown-linux-musl) (push) Failing after 10s
Build binaries and publish / build-linux (x86_64-unknown-linux-gnu) (push) Failing after 9s
Build binaries and publish / build-linux (x86_64-unknown-linux-musl) (push) Failing after 8s
Add caching, use a compatible base image
2023-12-27 20:56:04 +02:00

46 lines
1003 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
container:
image: gitea.antonlyap.pp.ua/antonlyap/bliss-rs/node-rust:latest
credentials:
username: antonlyap
password: ${{ secrets.ACCESS_TOKEN }}
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 }}
- uses: actions/checkout@v4
- run: npm install
- run: npm run build -- --release
- uses: actions/cache@v3
with:
path: target
key: ${{ matrix.target }}-rust-target
- uses: actions/upload-artifact@v3
with:
name: binary-${{ matrix.target }}
path: index.node