ci: Build Firefox with current neqo #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Firefox | |
on: | |
push: | |
branches: ["main"] | |
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] | |
pull_request: | |
branches: ["main"] | |
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
firefox: | |
runs-on: ubuntu-latest | |
env: | |
MOZBUILD_STATE_PATH: ${{ github.workspace }}/mozbuild | |
steps: | |
- name: Check out Neqo | |
uses: actions/checkout@v4 | |
- name: Maximize build space | |
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 | |
uses: actions/checkout@v4 | |
- name: Check out Firefox | |
uses: actions/checkout@v4 | |
with: | |
repository: mozilla/gecko-dev | |
path: mozilla-unified | |
- name: Bootstrap Firefox | |
run: | | |
cd mozilla-unified | |
./mach bootstrap --application-choice browser | |
- name: Plumb in Neqo | |
run: | | |
# Get qlog version used by neqo | |
cargo generate-lockfile | |
QLOG_VERSION=$(cargo pkgid qlog | cut -d@ -f2) | |
rm Cargo.lock | |
cd mozilla-unified | |
{ | |
echo '[patch."https://github.com/mozilla/neqo"]' | |
echo "neqo-http3 = { path = \"$GITHUB_WORKSPACE/neqo-http3\" }" | |
echo "neqo-transport = { path = \"$GITHUB_WORKSPACE/neqo-transport\" }" | |
echo "neqo-common = { path = \"$GITHUB_WORKSPACE/neqo-common\" }" | |
echo "neqo-qpack = { path = \"$GITHUB_WORKSPACE/neqo-qpack\" }" | |
echo "neqo-crypto = { path = \"$GITHUB_WORKSPACE/neqo-crypto\" }" | |
} >> Cargo.toml | |
{ | |
echo '[[audits.qlog]]' | |
echo 'who = "CI"' | |
echo 'criteria = "safe-to-deploy"' | |
echo "version = \"$QLOG_VERSION\"" | |
} >> supply-chain/audits.toml | |
sed -i'' -e "s/qlog =.*/qlog = \"$QLOG_VERSION\"/" netwerk/socket/neqo_glue/Cargo.toml | |
./mach vendor rust --ignore-modified | |
- name: Build Firefox | |
run: | | |
cd mozilla-unified | |
./mach build | |