From aea3734ca85ceb47a76773bb86d53b728a03098c Mon Sep 17 00:00:00 2001 From: larzie Date: Tue, 26 Nov 2024 20:11:31 +0300 Subject: [PATCH] Update Linux CI Signed-off-by: larzie --- .github/workflows/linux-release-build.yml | 38 +++++++++++------------ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/linux-release-build.yml b/.github/workflows/linux-release-build.yml index f311a87e6..34818ec27 100644 --- a/.github/workflows/linux-release-build.yml +++ b/.github/workflows/linux-release-build.yml @@ -1,4 +1,5 @@ name: Linux Release Build + on: workflow_call: inputs: @@ -13,7 +14,6 @@ on: jobs: build-linux: - permissions: contents: write runs-on: ubuntu-latest @@ -27,21 +27,20 @@ jobs: - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@main with: - # this might remove tools that are actually needed, - # if set to "true" but frees about 6 GB tool-cache: false - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 20 - - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 with: submodules: recursive token: ${{ secrets.DEPLOY_KEY }} - - name: Setup git + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Setup Git run: | git config --global user.email "mauro-balades@users.noreply.github.com" git config --global user.name "mauro-balades" @@ -51,7 +50,7 @@ jobs: set -x sudo apt-get update --fix-missing sudo apt-get update - sudo apt-get install dos2unix yasm nasm build-essential libgtk2.0-dev libpython3-dev m4 uuid libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdrm-dev libdbus-glib-1-dev libdbus-glib-1-dev libgtk-3-dev libpulse-dev libx11-xcb-dev libxt-dev xvfb lld llvm + sudo apt-get install -y dos2unix yasm nasm build-essential libgtk2.0-dev libpython3-dev m4 uuid libasound2-dev libcurl4-openssl-dev libdbus-1-dev libdrm-dev libdbus-glib-1-dev libgtk-3-dev libpulse-dev libx11-xcb-dev libxt-dev xvfb lld llvm - name: Configure sccache uses: actions/github-script@v7 @@ -60,7 +59,7 @@ jobs: core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - name: Install sccache + - name: Setup sccache env: LINK: https://github.com/mozilla/sccache/releases/download SCCACHE_VERSION: 0.2.13 @@ -72,13 +71,12 @@ jobs: echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Save sccache - uses: actions/cache@v3 - continue-on-error: false + uses: actions/cache@v4 with: path: /home/runner/.cache/sccache key: ${{ runner.os }}-sccache - - name: Install pnpm + - name: Setup pnpm run: npm install -g pnpm - name: Get pnpm store directory @@ -94,10 +92,10 @@ jobs: - name: Load surfer CI setup run: pnpm surfer ci --brand ${{ inputs.release-branch }} --display-version ${{ inputs.build-version }} - - name: Download firefox source and dependencies + - name: Download Firefox source and dependencies run: pnpm surfer download - - name: Fix rust version + - name: Fix Rust version run: | # Install a rust version compatible with LLVM 18 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.79 @@ -152,19 +150,19 @@ jobs: mv dist/zen-*.tar.bz2 "zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2" mv dist/output.mar linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar - - name: Upload binary + - name: Upload build artifact (binary) uses: actions/upload-artifact@v4 with: name: zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 path: ./zen.linux-${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}.tar.bz2 - - name: Upload mar + - name: Upload build artifact (mar) uses: actions/upload-artifact@v4 with: name: linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar path: ./linux${{ matrix.arch == 'x86_64' && '-generic' || matrix.arch == 'aarch64' && '-aarch64' || '' }}.mar - - name: Upload update manifests + - name: Upload build artifact (update manifests) uses: actions/upload-artifact@v4 with: name: linux_update_manifest_${{ matrix.arch == 'x86_64' && 'generic' || matrix.arch == 'x86_64-v3' && 'specific' || matrix.arch == 'aarch64' && 'aarch64' }}