Update build-client.yml
This commit is contained in:
parent
cada0467bd
commit
d8499da4db
35
.github/workflows/build-client.yml
vendored
35
.github/workflows/build-client.yml
vendored
@ -29,13 +29,44 @@ jobs:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: Client/package-lock.json
|
||||
|
||||
- name: Install system dependencies (Ubuntu)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libnss3-dev libatk-bridge2.0-dev libdrm2 libxkbcommon-dev libxcomposite-dev libxdamage-dev libxrandr-dev libgbm-dev libxss1 libasound2-dev
|
||||
|
||||
- name: Install system dependencies (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
run: |
|
||||
# Install Xcode command line tools if not present
|
||||
xcode-select --install 2>/dev/null || true
|
||||
|
||||
- name: Install system dependencies (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
# Windows builds typically have required dependencies pre-installed
|
||||
# Ensure chocolatey is available for any additional packages
|
||||
choco --version || echo "Chocolatey not available"
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./Client
|
||||
run: npm ci
|
||||
run: |
|
||||
if [ "${{ matrix.os }}" = "windows-latest" ]; then
|
||||
npm ci --include=dev
|
||||
else
|
||||
npm ci
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Clean previous builds
|
||||
working-directory: ./Client
|
||||
run: rm -rf dist || true
|
||||
run: |
|
||||
if [ "${{ matrix.os }}" = "windows-latest" ]; then
|
||||
if exist dist rmdir /s /q dist
|
||||
else
|
||||
rm -rf dist
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- name: Build for ${{ matrix.os }}
|
||||
working-directory: ./Client
|
||||
|
||||
Loading…
Reference in New Issue
Block a user