Use Build runners for Breeze workflows

[skip ci] A workflow-only change does not need a new Pages deployment.
This commit is contained in:
waozi committed 2026-11-20 16:36:57 -03:00
1 parent 4c069680fc
commit 3528bc94ce
2 files changed
+48 -2

No files matched your search

+46
View File
@@ -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
+2 -2
View File
@@ -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 }}