mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-04 22:50:18 +00:00
Configure GitHub Actions for Linux release builds
This commit is contained in:
parent
2e1fdeac82
commit
5b53ec5020
2 changed files with 29 additions and 2 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
|
@ -31,6 +31,8 @@ jobs:
|
|||
arch: x64
|
||||
- os: windows-latest
|
||||
arch: x64
|
||||
- os: ubuntu-latest
|
||||
arch: x64
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
|
|
@ -82,6 +84,17 @@ jobs:
|
|||
VITE_STACK_PUBLISHABLE_CLIENT_KEY: ${{ secrets.VITE_STACK_PUBLISHABLE_CLIENT_KEY }}
|
||||
VITE_STACK_SECRET_SERVER_KEY: ${{ secrets.VITE_STACK_SECRET_SERVER_KEY }}
|
||||
|
||||
# Step for Linux builds
|
||||
- name: Build Release Files (Linux)
|
||||
if: runner.os == 'Linux'
|
||||
run: npm run build:linux
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VITE_BASE_URL: ${{ secrets.VITE_BASE_URL }}
|
||||
VITE_STACK_PROJECT_ID: ${{ secrets.VITE_STACK_PROJECT_ID }}
|
||||
VITE_STACK_PUBLISHABLE_CLIENT_KEY: ${{ secrets.VITE_STACK_PUBLISHABLE_CLIENT_KEY }}
|
||||
VITE_STACK_SECRET_SERVER_KEY: ${{ secrets.VITE_STACK_SECRET_SERVER_KEY }}
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
|
|
@ -97,7 +110,7 @@ jobs:
|
|||
steps:
|
||||
- name: Create directories
|
||||
run: |
|
||||
mkdir -p release/mac-x64 release/mac-arm64 release/win-x64
|
||||
mkdir -p release/mac-x64 release/mac-arm64 release/win-x64 release/linux-x64
|
||||
|
||||
# Download all artifacts with correct names
|
||||
- name: Download mac-x64 artifact
|
||||
|
|
@ -118,6 +131,12 @@ jobs:
|
|||
name: release-windows-latest-x64
|
||||
path: temp-win-x64
|
||||
|
||||
- name: Download linux-x64 artifact
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: release-ubuntu-latest-x64
|
||||
path: temp-linux-x64
|
||||
|
||||
# Move files to final release directory, removing any nested release/ directory
|
||||
- name: Move files to clean folders
|
||||
shell: bash
|
||||
|
|
@ -143,6 +162,13 @@ jobs:
|
|||
mv temp-win-x64/* release/win-x64/ || true
|
||||
fi
|
||||
|
||||
# linux-x64
|
||||
if [ -d "temp-linux-x64/release" ]; then
|
||||
mv temp-linux-x64/release/* release/linux-x64/ || true
|
||||
else
|
||||
mv temp-linux-x64/* release/linux-x64/ || true
|
||||
fi
|
||||
|
||||
- name: Rename duplicate files
|
||||
run: |
|
||||
mv release/mac-x64/latest-mac.yml release/mac-x64/latest-x64-mac.yml || true
|
||||
|
|
@ -157,5 +183,6 @@ jobs:
|
|||
release/mac-x64/*
|
||||
release/mac-arm64/*
|
||||
release/win-x64/*
|
||||
release/linux-x64/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue