Skip to content

Commit 5bd1aa2

Browse files
CodeGhost21claude
andauthored
Simplify build.yml to Ubuntu-only for now (tinyhumansai#86)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 24fc777 commit 5bd1aa2

1 file changed

Lines changed: 8 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,9 @@ jobs:
5555
run: cargo clippy -p openhuman
5656

5757
build:
58-
name: Build Tauri App (${{ matrix.settings.label }})
58+
name: Build Tauri App (Linux x86_64)
5959
needs: rust-quality
60-
runs-on: ${{ matrix.settings.platform }}
61-
strategy:
62-
fail-fast: false
63-
matrix:
64-
settings:
65-
- platform: ubuntu-22.04
66-
target: x86_64-unknown-linux-gnu
67-
label: Linux x86_64
68-
- platform: macos-latest
69-
target: aarch64-apple-darwin
70-
label: macOS ARM64
60+
runs-on: ubuntu-22.04
7161
steps:
7262
- name: Checkout code
7363
uses: actions/checkout@v4
@@ -84,10 +74,9 @@ jobs:
8474
- name: Install Rust (rust-toolchain.toml)
8575
uses: dtolnay/rust-toolchain@1.93.0
8676
with:
87-
targets: ${{ matrix.settings.target }}
77+
targets: x86_64-unknown-linux-gnu
8878

89-
- name: Install Tauri dependencies (Linux)
90-
if: matrix.settings.platform == 'ubuntu-22.04'
79+
- name: Install Tauri dependencies
9180
run: |
9281
sudo apt-get update
9382
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
@@ -123,19 +112,18 @@ jobs:
123112
run: yarn install --frozen-lockfile
124113

125114
- name: Build sidecar core binary
126-
run: cargo build --manifest-path Cargo.toml --release --target ${{ matrix.settings.target }} --bin openhuman
115+
run: cargo build --manifest-path Cargo.toml --release --target x86_64-unknown-linux-gnu --bin openhuman
127116

128117
- name: Stage sidecar for Tauri bundler
129-
shell: bash
130118
run: |
131119
mkdir -p app/src-tauri/binaries
132-
cp target/${{ matrix.settings.target }}/release/openhuman app/src-tauri/binaries/openhuman-${{ matrix.settings.target }}
133-
chmod +x app/src-tauri/binaries/openhuman-${{ matrix.settings.target }}
120+
cp target/x86_64-unknown-linux-gnu/release/openhuman app/src-tauri/binaries/openhuman-x86_64-unknown-linux-gnu
121+
chmod +x app/src-tauri/binaries/openhuman-x86_64-unknown-linux-gnu
134122
135123
- name: Build Tauri app
136124
working-directory: app
137125
run: |
138126
TAURI_CONFIG_OVERRIDE='{"bundle":{"createUpdaterArtifacts":"never"},"plugins":{"updater":{"active":false}}}'
139-
yarn tauri build -c "$TAURI_CONFIG_OVERRIDE" --bundles none --target ${{ matrix.settings.target }} -- -- --bin OpenHuman
127+
yarn tauri build -c "$TAURI_CONFIG_OVERRIDE" --bundles none -- -- --bin OpenHuman
140128
env:
141129
NODE_ENV: production

0 commit comments

Comments
 (0)