Files
goose/Cross.toml
T
Salman Mohammed c331a146f5 ci: update github action workflows for CI and release (#633)
Co-authored-by: Kalvin Chau <kalvin@squareup.com>

- combines the release workflow for CLI and Desktop App
    - "Build CLI" step only builds 'goose' artifacts; it skips 'goosed' artifacts
    - we no longer release desktop app run on pull requests speeds up PR builds a lot. however, i created a separate PR comment trigger which we can trigger with "/bundle-desktop" comment cause it can be useful in select PRs.
    - system deps in Cross.toml had to be updated (possible due to the recent Ubuntu update from 22 -> 24 in Github runners)

- versioned and stable release

- adds a PR comment trigger workflow to bundle desktop app and comment on PR with the download link

- only download 'goose' artifacts in download_cli.sh, improve error msgs

- combines the CI workflows for rust and electron app to a single workflow

- adds canary release workflow
2025-01-17 14:36:08 -05:00

30 lines
809 B
TOML

# Configuration for cross-compiling using cross
[target.aarch64-unknown-linux-gnu]
xargo = false
pre-build = [
# Add the ARM64 architecture and install necessary dependencies
"dpkg --add-architecture arm64",
"""\
apt-get update --fix-missing && apt-get install -y \
pkg-config \
libssl-dev:arm64 \
libdbus-1-dev:arm64 \
libxcb1-dev:arm64
"""
]
env = { PKG_CONFIG_PATH = "/usr/lib/aarch64-linux-gnu/pkgconfig" }
[target.x86_64-unknown-linux-gnu]
xargo = false
pre-build = [
# Install necessary dependencies for x86_64
# We don't need architecture-specific flags because x86_64 dependencies are installable on Ubuntu system
"""\
apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
libdbus-1-dev \
libxcb1-dev \
"""
]