From 3528bc94ce2fd2cdf9932eed9aab54146057fc07 Mon Sep 17 00:00:00 2001 From: Waozi Date: Fri, 20 Nov 2026 16:36:57 -0300 Subject: [PATCH] Use Build runners for Breeze workflows [skip ci] A workflow-only change does not need a new Pages deployment. --- .gitea/workflows/build.yml | 46 ++++++++++++++++++++++++++++++++++++++ .gitea/workflows/pages.yml | 4 ++-- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 000000000..01bf24dc9 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,46 @@ +name: Breeze build +on: + workflow_dispatch: + inputs: + profile: + description: Quick compiles the Linux app. Full also runs the local tests. + required: true + type: choice + options: [quick, full] + default: quick + +permissions: + contents: read + +jobs: + linux: + name: Linux native + runs-on: build-breeze + timeout-minutes: 60 + steps: + - uses: https://github.com/actions/checkout@v4 + with: + lfs: true + persist-credentials: false + - name: Install Linux build and test dependencies + run: USER="$(id -un)" .github/scripts/install-apt-packages.sh .github/apt/test-packages.txt ccache + - name: Fetch locked Ziran packages + uses: ./.github/actions/ziran-packages + - name: Restore Linux compiler objects + uses: https://github.com/actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 + with: + path: ~/.cache/ccache + key: breeze-native-ccache-v1-${{ runner.os }}-${{ runner.arch }}-${{ gitea.sha }} + restore-keys: breeze-native-ccache-v1-${{ runner.os }}-${{ runner.arch }}- + - name: Build the desktop app + env: + CCACHE_COMPILERCHECK: content + CCACHE_MAXSIZE: 200M + run: | + export PATH="/usr/lib/ccache:$PATH" + export CCACHE_BASEDIR="$GITHUB_WORKSPACE" CCACHE_DIR="$HOME/.cache/ccache" + make -j2 PACKAGE_FLAGS=--locked native + ccache --show-stats + - name: Run the retained local tests + if: inputs.profile == 'full' + run: env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY HARMONY_DESKTOP_RECOVERY=0 make -j2 PACKAGE_FLAGS=--locked test diff --git a/.gitea/workflows/pages.yml b/.gitea/workflows/pages.yml index 66487f2b8..147fc8b8b 100644 --- a/.gitea/workflows/pages.yml +++ b/.gitea/workflows/pages.yml @@ -14,8 +14,8 @@ jobs: site: name: Build and verify the site if: gitea.event_name == 'pull_request' || gitea.ref == 'refs/heads/master' - # The Ubuntu label is registered by the Build runners. - runs-on: alpha-ubuntu24.04 + # Keep deployments on the same Build slot as its web artifact cache. + runs-on: build-breeze timeout-minutes: 45 env: SITE_ASSET_VERSION: ${{ gitea.sha }}