-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experiment: Building with CMake (#3350)
* Add cmake support for lottie, nebula and golang * Build unit tests with cmake * Build QML tests with cmake * Build auth tests with cmake * Build Ubuntu packages with CMake * Move GI version mangling into Linux bundling script. * Build functional tests with CMake * Run CI unit and QML tests with CMake * Add CMake support for building the web extension * Update README.md with Linux build steps for CMake * Add initial support for building MacOS * Build the Windows MSI with CMake * Patch wasm builds in CI to include lrelease tool * Generate a dummy qmake project to aid in string updates. * Fix assorted build pain with Xcode and balrog. * Build Windows unit and QML tests with CMake * Fix MergeModule import from other versions of MSVC * Add cmake logic to download/install the split-tunnel driver. * Combine sources and headers. * Add nativemessaging tests, use CTest to run tests. * Eliminate MVPN_OATHTOOL and just use the python module * Add webextension to MacOS bundle
- Loading branch information
Showing
112 changed files
with
3,230 additions
and
852 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,45 +21,45 @@ jobs: | |
env: | ||
QTVERSION: 6.2.4 | ||
steps: | ||
- name: Install Linux packages | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install git libgl-dev libegl-dev libpolkit-gobject-1-dev clang-10 liboath-dev python3 -y | ||
python3 -m pip install -r requirements.txt | ||
python3 -m pip install aqtinstall | ||
aqt install-qt --outputdir /opt linux desktop $QTVERSION gcc_64 -m all | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodules | ||
shell: bash | ||
run: | | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
git submodule sync --recursive | ||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | ||
- name: Generating glean samples | ||
shell: bash | ||
run: | | ||
pip3 install -r requirements.txt | ||
python3 scripts/utils/generate_glean.py | ||
- name: Importing translation files | ||
shell: bash | ||
run: | | ||
export PATH=/opt/$QTVERSION/gcc_64/bin:$PATH | ||
python3 scripts/utils/import_languages.py | ||
- name: Install Grcov | ||
shell: bash | ||
run: | | ||
cargo install grcov | ||
- name: Building tests | ||
shell: bash | ||
run: | | ||
mkdir -p build | ||
cmake -S . -B $(pwd)/build -DBUILD_TESTING=ON \ | ||
-DCMAKE_PREFIX_PATH=/opt/$QTVERSION/gcc_64/lib/cmake/ \ | ||
-DCMAKE_CXX_FLAGS=--coverage -DCMAKE_EXE_LINKER_FLAGS=--coverage | ||
cmake --build $(pwd)/build --target qml_tests | ||
- name: Running tests | ||
shell: bash | ||
run: | | ||
export PATH=/opt/$QTVERSION/gcc_64/bin:$PATH | ||
xvfb-run -a ./scripts/tests/qml_tests.sh --grcov qml_lcov.info | ||
$(pwd)/build/tests/qml/qml_tests -platform offscreen | ||
grcov $(pwd)/build/tests/qml/CMakeFiles/qml_tests.dir \ | ||
-s $(pwd)/build/tests/qml -t lcov --branch --ignore-not-existing \ | ||
> ${{github.workspace}}/qml_lcov.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
|
@@ -82,7 +82,7 @@ jobs: | |
shell: bash | ||
run: | | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
git clone https://github.com/mozilla-mobile/qt_static_macos | ||
git clone https://github.com/mozilla-mobile/qt_static_macos --depth 1 | ||
cd qt_static_macos | ||
cat qt6* > qt_static.tar.gz | ||
tar xf qt_static.tar.gz | ||
|
@@ -147,7 +147,7 @@ jobs: | |
shell: bash | ||
run: | | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
git clone https://github.com/mozilla-mobile/qt_static_windows | ||
git clone https://github.com/mozilla-mobile/qt_static_windows --depth 1 | ||
cd qt_static_windows | ||
cat qt6* > qt_static.tar.bz2 | ||
tar xf qt_static.tar.bz2 | ||
|
@@ -165,20 +165,19 @@ jobs: | |
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Install glean depedencies | ||
- name: Install depedencies | ||
shell: bash | ||
run: | | ||
pip3 install -r requirements.txt | ||
python3 scripts/utils/generate_glean.py | ||
- name: Importing translation files | ||
- name: Building tests | ||
shell: bash | ||
run: | | ||
export PATH=/c/MozillaVPNBuild/bin:$PATH | ||
python3 scripts/utils/import_languages.py -m | ||
mkdir -p build | ||
cmake -S . -B $(pwd)/build -DBUILD_TESTING=ON | ||
cmake --build $(pwd)/build --config Release --target qml_tests | ||
- name: Running tests | ||
shell: bash | ||
run: | | ||
export PATH=/c/MozillaVPNBuild/bin:$PATH | ||
./scripts/tests/qml_tests.sh | ||
run: build/tests/qml/Release/qml_tests.exe |
Oops, something went wrong.