-
Notifications
You must be signed in to change notification settings - Fork 127
64 lines (55 loc) · 1.93 KB
/
firefox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
defaults:
run:
shell: bash
env:
MOZBUILD_STATE_PATH: ${{ github.workspace }}/mozbuild
steps:
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: sudo apt-get install -y --no-install-recommends curl python3 python3-pip mercurial
- name: Checkout Neqo
uses: actions/checkout@v4
- name: Checkout Firefox
uses: actions/checkout@v4
with:
repository: mozilla/gecko-dev
path: mozilla-unified
- name: Bootstrap Firefox
run: |
cd mozilla-unified
./mach --no-interactive bootstrap --application-choice browser
- name: Plumb in Neqo
run: |
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
sed -i'' -e 's/TOLERATED_DUPES = {/TOLERATED_DUPES = { "qlog":2,/' python/mozbuild/mozbuild/vendor/vendor_rust.py
./mach cargo vet add-exemption qlog 0.13.0
./mach --no-interactive vendor rust --ignore-modified || true
./mach cargo vet
- name: Build Firefox
run: |
cd mozilla-unified
./mach build