mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 00:11:05 +00:00
Adds the complete signed Linux release matrix, FreeBSD CI, and packaging lint to ArtCraft Studio, aligned with the Craft suite standards in `craft-common-actions`. | Architecture | Formats | |:-------------|:------------------------------------------------------------------------| | x86_64 | AppImage and zsync, DEB, RPM, tar.gz, Arch package, Flatpak bundle, OCI | | aarch64 | AppImage and zsync, DEB, RPM, tar.gz, Arch package, Flatpak bundle, OCI | | riscv64 | DEB, RPM, tar.gz | ### Changes - **Linux Packaging Matrix**: Builds and packages ArtCraft Studio across x86_64, aarch64, and riscv64 using `storytold/craft-common-actions`. Produces DEB, RPM, AppImage, tarball, Arch package, and Flatpak bundle/OCI artifacts. Cross-compiles riscv64 DEB and RPM via BoringSSL CMake configuration. Signed Linux artifacts join existing `artcraft-v<version>` release drafts while retaining macOS and Windows assets (storytold/craft-common-actions#160 and #161). - **Release Trigger Alignment**: Like macOS and Windows release workflows, Linux release builds run on release branches (`release`, `artcraft-release`, `artcraft-linux`) and `workflow_dispatch` rather than on PRs. - **Documentation**: Updated `README.md` to include Linux under download options and reference `packaging/linux/README.md`. Added `packaging/windows/README.md` placeholder. - **Packaging Lint**: Added `.github/workflows/packaging-lint.yml` calling `craft-common-actions/packaging-lint.yml@main`. Fixed pre-existing actionlint and shellcheck issues in macOS and Windows publish workflows (`shell: pwsh` defaults and variable quoting). - **FreeBSD CI**: Added `.github/workflows/freebsd.yml` calling `craft-common-actions/freebsd.yml@main` on scheduled nightly runs, release branches, and manual dispatch (not on pull requests). - **SQLx Build Fallback**: Updated `crates/schema/database/sqlite_tasks/build.rs` to fall back to `SQLX_OFFLINE=true` using committed `.sqlx/` query data when no live `/tmp/tasks.sqlite` database file exists, fixing nextest coverage archives under CI. ### Validation - `actionlint` passes cleanly across all `.github/workflows/*.yml` files. - `shellcheck` passes across all scripts in `packaging/linux/*.sh`. - `xmllint` validates `packaging/linux/ai.artcraft.app.metainfo.xml`. - `cargo check -p sqlite_tasks`, `cargo test -p sqlite_tasks`, and `cargo test --no-run -p sqlite_tasks` pass locally without database environment variables. - Packaging lint passes 100% green on CI. - SonarCloud / nextest instrumented test archive build passes on CI. - Linux package scripts (`package.sh`, `package-test.sh`, `flatpak.sh`) verified locally and on CI runners.
8 lines
400 B
CMake
8 lines
400 B
CMake
# boring-sys2 has built-in ARM toolchains but no RISC-V toolchain. Set the target
|
|
# explicitly so BoringSSL does not select the x86_64 runner's assembly sources.
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
|
set(CMAKE_SYSTEM_PROCESSOR riscv64)
|
|
set(CMAKE_C_COMPILER riscv64-linux-gnu-gcc)
|
|
set(CMAKE_CXX_COMPILER riscv64-linux-gnu-g++)
|
|
set(OPENSSL_NO_ASM ON CACHE BOOL "Use BoringSSL's portable RISC-V implementation")
|