build: separated github and forgejo build workflows
This commit is contained in:
parent
d79738a2f1
commit
a72213ac73
3 changed files with 64 additions and 50 deletions
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
|
|
@ -7,7 +7,10 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest]
|
||||
container:
|
||||
image: node:20
|
||||
steps:
|
||||
|
|
@ -20,30 +23,19 @@ jobs:
|
|||
apt-get update
|
||||
apt-get install -y unzip libstdc++6 libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libgbm1 libasound2
|
||||
|
||||
- name: Manual Bun Install
|
||||
run: |
|
||||
# Download and install via official script
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
# Manually add Bun to the PATH for subsequent steps
|
||||
echo "BUN_INSTALL=$HOME/.bun" >> $GITHUB_ENV
|
||||
echo "$HOME/.bun/bin" >> $GITHUB_PATH
|
||||
|
||||
# Force execution permissions just in case
|
||||
chmod +x $HOME/.bun/bin/bun
|
||||
|
||||
# Verify it works immediately
|
||||
$HOME/.bun/bin/bun --version
|
||||
- name: Bun Install
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Build Canary
|
||||
run: bun run package:auto-prod
|
||||
env:
|
||||
BUILD_DIR: ./build/${{ runner.os }}
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: canary-build
|
||||
path: build/
|
||||
retention-days: 7
|
||||
path: build/${{ runner.os }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue