Skip to content

Commit

Permalink
Browser on demand only
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Oct 9, 2024
1 parent 7758a1c commit 35c7b51
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/firefox.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Firefox
on:
workflow_dispatch:
inputs:
build_browser:
description: 'Build the entire browser'
type: boolean
required: false
default: false
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened, ready_for_review]
Expand All @@ -26,7 +32,7 @@ jobs:
flavor: [glue]
include:
- type: ${{ github.event.pull_request.draft == false && 'release' || 'debug' }}
- flavor: ${{github.event.pull_request.draft == false && 'browser' || 'glue'}}
- flavor: ${{github.event.inputs.build_browser == true && 'browser' || 'glue' }}
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -40,7 +46,7 @@ jobs:
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Maximize build space
if: runner.os == 'Linux'
if: runner.os == 'Linux' && matrix.flavor == 'browser'
run: |
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /usr/share/dotnet || true
Expand Down

0 comments on commit 35c7b51

Please sign in to comment.