TipiLAN-i mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
790 B

name: build
on:
workflow_call:
jobs:
build:
runs-on: prox-1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check if Bun is installed
id: check-bun
run: |
if command -v bun &> /dev/null; then
echo "bun-exists=true" >> $GITHUB_OUTPUT
echo "Bun is already installed: $(bun --version)"
else
echo "bun-exists=false" >> $GITHUB_OUTPUT
echo "Bun is not installed"
fi
- name: Setup Bun
if: steps.check-bun.outputs.bun-exists == 'false'
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build project
run: bun --bun run build