Skip to content

Update build-binaries.yml #13

Update build-binaries.yml

Update build-binaries.yml #13

name: Build Binaries
on:
push:
branches:
- daniel/infisical-binary
pull_request:
branches:
- daniel/infisical-binary
jobs:
build-and-release:
runs-on: ubuntu-20.04
strategy:
matrix:
arch:
- x64
- arm64
node-version:
- 18
os:
- linux
- macos
- win
defaults:
run:
working-directory: ./backend
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies (backend)
run: npm install
- name: Install dependencies (frontend)
run: npm install --prefix ../frontend
- name: Prerequisites for pkg
run: npm run binary:build
- name: Package into node binary
uses: lando/pkg-action@v2
id: pkg
with:
entrypoint: backend/dist/main.js
arch: ${{ matrix.arch }}
node-version: node${{ matrix.node-version }}
os: ${{ matrix.os }}
upload: false
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.pkg.outputs.artifact-key }}
path: ${{ steps.pkg.outputs.file }}