This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
Build Thorium #10
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: Build Thorium | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Maximize build space | |
uses: theoparis/maximize-build-space@master | |
with: | |
root-reserve-mb: 2048 | |
swap-size-mb: 1024 | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
- name: Check free space | |
run: | | |
echo "Free space:" | |
df -h | |
mount | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install -y gn ninja-build ffmpeg libavformat-dev libavfilter-dev libavdevice-dev libavcodec-dev libffi-dev libgbm-dev libdrm-dev libwayland-egl1-mesa libnss3-dev patch pkgconf libva-dev libpulse-dev libpipewire-0.3-dev libffi-dev libelf-dev libc6-dev flex curl bison elfutils fakeroot gperf zstd mesa-common-dev libxkbcommon-dev libbluetooth-dev libvulkan-dev libcups2 libfreetype6 libfontconfig1 libfuse2 | |
- name: Install depot tools | |
run: | | |
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
echo "$PWD/depot_tools" >> $GITHUB_PATH | |
- name: Checkout sources | |
run: | | |
gclient sync --no-history -j$(nproc) | |
- name: Build | |
run: | | |
cd src | |
mkdir -p out/Default | |
cp ../args.gn ./out/Default/args.gn | |
gn gen out/Default | |
autoninja -C out/Default chrome | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
out/Default/*.so | |
out/Default/*.a | |
out/Default/chrome |