Skip to content

Commit

Permalink
Use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Apr 17, 2024
1 parent 2204832 commit 91e1d32
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ concurrency:

jobs:
firefox:
runs-on: ubuntu-latest
name: Build Firefox
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
type: [debug, release]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
env:
MOZBUILD_STATE_PATH: ${{ github.workspace }}/mozbuild
CARGO_HOME: ${{ github.workspace }}/cargo
Expand All @@ -26,10 +35,12 @@ jobs:
uses: actions/checkout@v4

- name: Maximize build space
if: runner.os == 'Linux'
uses: ./.github/actions/maximize-build-space

# The previous step blew it away, so we need to check it out again.
- name: Check out Neqo again
if: runner.os == 'Linux'
uses: actions/checkout@v4

- name: Check out Firefox
Expand All @@ -42,19 +53,18 @@ jobs:
uses: mozilla-actions/[email protected]

- name: Enable sscache
run: |
{
echo "CC=sccache cc"
echo "CXX=sccache c++"
echo "SCCACHE_GHA_ENABLED=true"
echo "RUSTC_WRAPPER=sccache"
echo "CARGO_INCREMENTAL=0"
} >> "$GITHUB_ENV"
run: echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"

- name: Bootstrap Firefox
run: |
cd mozilla-unified
./mach bootstrap --application-choice browser
{
echo "ac_add_options --with-ccache=sccache"
echo "ac_add_options --enable-application=browser"
echo "ac_add_options --disable-tests"
echo "ac_add_options --enable-${{ matrix.type }}"
} >> mozconfig
./mach bootstrap
- name: Plumb in Neqo
run: |
Expand Down

0 comments on commit 91e1d32

Please sign in to comment.