Files
openhuman/.github/workflows/build.yml
T
Steven EnamakelGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
b1d7bce7b6 fix: update release workflow to use XGH_TOKEN for alphahumanxyz/alphahuman releases (#16)
* chore: bump version to 0.3.0 [skip ci]

* chore: bump version to 0.4.0 [skip ci]

* fix: update GitHub Actions workflow to use new token and repository settings

- Changed the environment variable for publishing to use `XGH_TOKEN` instead of `GH_TOKEN` for authentication.
- Updated the `PUBLISH_REPO` variable to specify the repository directly.
- Adjusted echo messages and curl commands to reflect the new token usage, ensuring proper functionality during the release process.

These changes enhance the security and clarity of the publishing workflow.

* fix: update Tauri configuration identifier

- Changed the application identifier from 'org.telegram.TelegramAir' to 'com.alphahuman.app' in the Tauri configuration file.

This update aligns the identifier with the new application branding.

* fix: add frontend build step and fix frontendDist path in CI

* chore: update GitHub Actions workflows to include Python sidecar setup and caching

- Added installation of Python dependencies in both build and package-and-publish workflows.
- Implemented setup for Python sidecar binary for Linux and macOS platforms.
- Introduced caching for Cargo registry and build artifacts to optimize build times.

These changes enhance the CI/CD process by improving dependency management and build efficiency.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-02 07:07:16 +05:30

87 lines
2.3 KiB
YAML

name: Build
on:
pull_request:
branches: ['*']
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
test-build:
name: Build Tauri App
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: 'yarn'
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
- name: Install Tauri dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf python3
- name: Setup Python sidecar binary
run: |
TARGET=$(rustc --print host-tuple)
PYTHON_PATH=$(which python3)
SIDECAR_PATH="src-tauri/runtime-skill-python-${TARGET}"
ln -sf "${PYTHON_PATH}" "${SIDECAR_PATH}"
echo "Created symlink: ${SIDECAR_PATH} -> ${PYTHON_PATH}"
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Cache Cargo build artifacts
uses: actions/cache@v4
with:
path: src-tauri/target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-
- name: Cache node modules
id: yarn-cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Build frontend
run: yarn build
- name: Build Tauri app
run: yarn tauri build -- --target x86_64-unknown-linux-gnu
env:
NODE_ENV: production