Repository navigation
73 lines (68 loc) · 2.29 KB
/
Copy pathtest.yml
File metadata and controls
73 lines (68 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
# PR/push test gate. Delegates to the reusable `test-reusable.yml`
# (frontend Vitest + Rust core + Rust Tauri shell). The same reusable
# workflow is called by `release-staging.yml` and `release-production.yml`
# as part of the pretest gate before any build-desktop matrix runs.
name: Test
on:
workflow_dispatch: {}
permissions:
actions: read
contents: read
packages: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
test:
uses: ./.github/workflows/test-reusable.yml
desktop-compile:
name: Desktop compile (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-15, windows-2022]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
defaults:
run:
shell: bash
env:
GH_TOKEN: ${{ github.token }}
CI: "true"
steps:
# The TinyFlows fixture tree contains paths beyond MAX_PATH. Configure
# Git before checkout so recursive submodule checkout can create them.
- name: Enable long Git paths
if: runner.os == 'Windows'
run: git config --global core.longpaths true
- uses: actions/checkout@v7
with:
persist-credentials: false
submodules: recursive
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
. -> target
crates/openhuman-app -> target
- name: Install Linux desktop dependencies
if: runner.os == 'Linux'
run: |
sudo timeout 300 apt-get update
sudo timeout 300 apt-get install -y \
libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev \
libasound2-dev libudev-dev libdbus-1-dev patchelf
- name: Install dependencies
run: bash scripts/ci-cancel-aware.sh pnpm install --frozen-lockfile
- name: Build the desktop host
working-directory: app
run: |
bash ../scripts/ci-cancel-aware.sh pnpm tauri build --debug --no-bundle \
-c '{"bundle":{"createUpdaterArtifacts":false}}' -- --bin OpenHuman