chore: Update build workflows to support warp builds

This commit is contained in:
Mauro Balades
2024-07-24 14:27:51 +02:00
parent cffdd29121
commit 494c829b53
3 changed files with 16 additions and 2 deletions

View File

@@ -13,6 +13,11 @@ on:
required: false
default: true
type: 'boolean'
use-warp-build:
description: 'Use the warp build'
required: false
default: false
type: 'boolean'
jobs:
@@ -209,6 +214,7 @@ jobs:
with:
build-version: ${{ needs.build-data.outputs.version }}
generate-gpo: false
use-warp-build: ${{ github.event.inputs.use-warp-build }}
linux:
name: Linux build

View File

@@ -6,12 +6,16 @@ on:
description: 'The version to build'
required: true
type: string
use-warp-build:
description: 'Whether to use the warp build'
required: true
type: boolean
jobs:
build-linux:
permissions:
contents: write
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.use-warp-build == 'true' && 'warp-ubuntu-latest-x64-16x' || 'ubuntu-latest' }}
steps:
- name: Install Node.js

View File

@@ -13,10 +13,14 @@ on:
profile-data-path-archive:
description: 'The path to the zip archive containing the profile data'
type: string
use-warp-build:
description: 'Whether to use the warp build'
required: true
type: boolean
jobs:
windows-build:
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.use-warp-build == 'true' && 'warp-windows-latest-x64-16x' || 'ubuntu-latest' }}
steps:
- name: Install Node.js and pnpm