mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-05 18:25:23 +02:00
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
name: Publish prebuild
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- stable
|
|
paths:
|
|
- packages/**
|
|
- locales/**
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build_binaries:
|
|
name: Build & ship binaries
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.x]
|
|
python-version: [3.11.x]
|
|
if: github.repository == 'transfem-org/Sharkey'
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v4.1.0
|
|
with:
|
|
lfs: true
|
|
submodules: 'recursive'
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4.7.1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Cache APT Packages
|
|
uses: awalsh128/cache-apt-pkgs-action@v1.3.0
|
|
with:
|
|
packages: "build-essential ffmpeg tini curl libjemalloc-dev libjemalloc2 uuid-dev libx11-dev libxkbfile-dev execstack libgconf-2-4 libsecret-1-dev"
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.npm
|
|
key: v1-npm-deps-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: v1-npm-deps-
|
|
|
|
- name: Build
|
|
run: |
|
|
corepack enable
|
|
corepack prepare pnpm@latest --activate
|
|
pnpm install
|
|
npm install -g pkg
|
|
pnpm run build
|
|
cd packages/backend
|
|
pkg --public ./built/boot/entry.js
|
|
ls
|