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