Skip to content

Commit 492d69e

Browse files
committed
Added build with clang-plugin to CI
1 parent f093725 commit 492d69e

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed

.github/workflows/clang-plugin.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Attempt to build the whole browser
2+
name: Browser
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the main branch
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
jobs:
16+
17+
# Test complete build on Ubuntu
18+
ubuntu-build:
19+
runs-on: ubuntu-22.04
20+
21+
steps:
22+
- name: Free Disk Space (Ubuntu)
23+
uses: jlumbroso/free-disk-space@main
24+
with:
25+
tool-cache: true
26+
android: true
27+
dotnet: true
28+
haskell: true
29+
large-packages: true
30+
docker-images: true
31+
swap-storage: true
32+
33+
- name: Install Dependencies
34+
run: |
35+
df -h
36+
sudo apt-get update
37+
sudo apt-get install -y \
38+
curl \
39+
python3 \
40+
python3-pip \
41+
python3-venv \
42+
tar \
43+
zip \
44+
unzip \
45+
git
46+
sudo apt-get install -y --no-install-recommends ffmpeg libasound2 libatk1.0-0 libcairo-gobject2 libcairo2 libdbus-1-3 libdbus-glib-1-2 libfontconfig1 libfreetype6 libgdk-pixbuf-2.0-0 libglib2.0-0 libgtk-3-0 libpango-1.0-0 libpangocairo-1.0-0 libx11-6 libx11-xcb1 libxcb-shm0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxtst6 xvfb fonts-noto-color-emoji fonts-unifont xfonts-cyrillic xfonts-scalable fonts-liberation fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf fonts-freefont-ttf
47+
python3 -m pip install setuptools
48+
49+
- name: Checkout release branch
50+
uses: actions/checkout@v4
51+
with:
52+
fetch-depth: 1
53+
54+
- name: Dry Run
55+
run: |
56+
cp taintfox_mozconfig_ubuntu_clang_plugin .mozconfig
57+
bash build.sh -p -n
58+
59+
- name: Bootstrap
60+
run: |
61+
df -h
62+
bash build.sh -u -v
63+
64+
- name: Build
65+
run: |
66+
bash build.sh -s -v
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# limit number of parallel jobs - do not do this by default, but might be needed for build systems with limited resources
2+
# mk_add_options MOZ_PARALLEL_BUILD=4
3+
4+
# Use ccache, make sure the path is correct
5+
#ac_add_options --with-ccache=/usr/bin/ccache
6+
7+
# On OS X we only support newer releases so that clang uses libc++ (llvm) instead of stdlibc++
8+
# We could work around this (typedef basic_string<char16_t> u16string), but this should be fine.
9+
#ac_add_options --enable-macos-target=10.10
10+
11+
# disable updater
12+
ac_add_options --disable-updater
13+
14+
# Add-on signing is not required for DevEdition
15+
MOZ_REQUIRE_SIGNING=
16+
17+
ac_add_options --with-branding=browser/branding/foxhound
18+
19+
#
20+
# DEBUG BUILD
21+
#
22+
#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-tf-dbg
23+
#ac_add_options --enable-debug-symbols
24+
#ac_add_options --enable-debug
25+
ac_add_options --disable-optimize
26+
#ac_add_options --disable-tests
27+
#ac_add_options --enable-project=js
28+
#ac_add_options --enable-jitspew
29+
30+
# Package js shell.
31+
export MOZ_PACKAGE_JSSHELL=1
32+
33+
#
34+
# RELEASE BUILD
35+
#
36+
ac_add_options --with-app-name=foxhound
37+
mk_add_options MOZ_APP_NAME=foxhound
38+
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-tf-release
39+
#ac_add_options --disable-tests
40+
ac_add_options --disable-sandbox
41+
ac_add_options --without-wasm-sandboxed-libraries
42+
ac_add_options --disable-crashreporter
43+
ac_add_options --disable-backgroundtasks
44+
ac_add_options --enable-release
45+
ac_add_options --enable-js-shell
46+
ac_add_options --enable-clang-plugin
47+
48+
#
49+
# OPTIMIZED BUILD WITH DEBUG SYMBOLS
50+
#
51+
#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-tf-release-with-symbols
52+
#ac_add_options --enable-debug-symbols
53+
#ac_add_options --enable-gczeal
54+
#ac_add_options --enable-optimize
55+
#ac_add_options --disable-tests

0 commit comments

Comments
 (0)