Commit graph

86 commits

Author SHA1 Message Date
dependabot[bot]
ae51044083
build(deps): bump the github-actions group with 2 updates (#9854)
Bumps the github-actions group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

Updates `actions/download-artifact` from 5 to 6
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-03 13:07:01 +02:00
Simon Hausmann
39b86d9482 esp-idf: Fix build with newer Rust toolchains
As per https://github.com/esp-rs/rust/issues/266, the inclusion of a linker script is required when using esp-println.
2025-10-08 20:39:38 +02:00
Simon Hausmann
5252924f45 CI: Fix esp-idf nightly tests
Some checks are pending
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-14) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.85) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / material-components (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
Use the older toolchain to build the Slint binaries used in the test
2025-09-26 22:36:58 +02:00
Simon Hausmann
3e7322c48f
CI: Prospective fix for slint compiler binary packages on Windows
Select the cargo toolchain that matches the C/C++ compiler. (No idea why it said gnu...)
2025-09-26 07:54:29 +02:00
Simon Hausmann
cc538ba874 Remove support for x86-64 macOS binaries
GitHub is going to remove the free x86-64 macos runners, as per https://github.blog/changelog/2025-07-11-upcoming-changes-to-macos-hosted-runners-macos-latest-migration-and-xcode-support-policy-updates/
2025-09-19 14:04:11 +02:00
Olivier Goffart
75b4df3c67 C++ package: enable the live reload feature by default
Some checks are pending
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.85) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, --exclude bevy-example, windows-2022, 1.85) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.85) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
2025-09-05 17:43:37 +02:00
dependabot[bot]
37adf4b616
build(deps): bump the github-actions group across 1 directory with 2 updates (#9245)
Bumps the github-actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [jdx/mise-action](https://github.com/jdx/mise-action).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `jdx/mise-action` from 2 to 3
- [Release notes](https://github.com/jdx/mise-action/releases)
- [Changelog](https://github.com/jdx/mise-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jdx/mise-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: jdx/mise-action
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-25 09:20:01 +03:00
Simon Hausmann
24a96a4750 CI: Provide a linux-aarch64 binary for the slint-compiler
Some checks are pending
CI / node_test (macos-14) (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.85) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, --exclude bevy-example, windows-2022, 1.85) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.85) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
2025-07-10 11:35:28 +02:00
Simon Hausmann
86befbe769 Python: Make space for additional python modules
Move Slint module into sub-directory under api/python
2025-06-25 20:43:09 +02:00
Simon Hausmann
54bb2d39ad Packaging: Fix up windows artifact names
For the slint-compiler, we use ${CMAKE_SYSTEM_PROCESSOR}, which on Windows is - unfortunately - derived from the PROCESSOR_ARCHITECTURE environment variable, and
thus AMD64 or ARM64. Fix the package suffix on the CI side.

We could try to make the cmake variable to known values and then arm64/x86_64, but I'd rather stick with less exceptions when these names are not really visible in the documentation or our users.

The same applies to the C++ packages, where the CMake/Windows suffix (AMD64/ARM64) works better with FindSlint.cmake's use of the corresponding variable.

Similarly, the tool binaries were called
slint-viewer-windows-aarch64-pc-windows-msvc, but neither the compiler, nor the rest of the triplet is needed, merely the architecture. So rename it to slint-viewer-windows-arm64 and x86_64. Here we don't need cmake and can use the "correct" suffixes.
2025-06-17 11:50:17 +02:00
Simon Hausmann
4cb6d12119 Initial support for Windows ARM64 binaries
Python is missing, otherwise this builds windows arm64 binaries for the
tools, C++ packages, slint-compiler, npm binaries, and lsp binaries for
the VS code extension.
2025-06-17 09:59:50 +02:00
Simon Hausmann
958d9e2be2 CI: Fix espup install
Some checks are pending
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, 1.82) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
Build from source is broken after zip-rs dependency having been yanked. Try with binstall instead.
2025-05-16 22:04:58 +02:00
Simon Hausmann
09db98f9ca Fix cargo-about version to a version that hopefully understands the SPDX ids we're using 2025-02-27 08:01:40 +01:00
Simon Hausmann
8a83f6eb09 Trim trailing whitespace 2025-02-27 07:49:36 +01:00
Simon Hausmann
03b3aa883a Pin cargo-about to build with our MSRV 2025-02-27 07:46:39 +01:00
Simon Hausmann
ec88305867 Update Skia Bindings
This allows reverting 18db3210d6 and

Fixes #6615
2025-02-23 17:11:52 +01:00
Olivier Goffart
1e814c9bdc
Stabilize the sdf-fonts feature
Enable the SDF feature by default in our compiler binaries

(Still disabled by default for other users because it takes up compile
time for something they probably don't need)
2025-02-19 21:24:53 +01:00
Olivier Goffart
9921a68678 CI: Update ubuntu version
Ubuntu 20.04 container is being discontinued, so use the 22.04 instead.
This is mostly used to generate binary packages
2025-02-11 19:34:12 +01:00
Olivier Goffart
3e94bd2167 Janitor: Remove trailing whitespaces from all files
`git grep -I -l -O'sed -i "s/[[:space:]]*$//"' -e ''`
2025-01-10 13:23:22 +01:00
Simon Hausmann
1a49798180 Include a third-party license attribution in the binary C++ packages
Generate a top-level licenses/ folder and include it in the CPack archive.
2025-01-08 21:43:30 +01:00
Simon Hausmann
2629ea0d76 Fix C++ ARM package names
Override system processor, so that we get

   Slint-cpp-Linux-armhf.tar.gz
   Slint-cpp-Linux-arm64.tar.gz

to match what cmake would expect when compiling on these.
2025-01-06 16:38:53 +01:00
Simon Hausmann
ea6f5b78e4 C++ arm packages: Bump Ubuntu host
(the host that hosts the container the build runs in)
2025-01-06 16:38:53 +01:00
Simon Hausmann
c83f9f60a7 Experimental support for Linux ARMv7/ARMv8 binary C++ packages
Build them in the same container(*) as we're building Rust binaries with
cross.

(*) It's not exactly the same container, it's the cross one _plus_ cmake
added.
2025-01-06 16:38:53 +01:00
Simon Hausmann
8a6a5772c2 Switch to macOS-13 images for C++ Packages and slint-compiler Darwin-x86_64 binaries
The macOS-12 images in GitHub Actions are deprecated and failing now.
2024-12-05 07:58:40 +01:00
Olivier Goffart
dfefe9968a CI: update Qt, defaults to Qt6 for the linux binaries
Closes #6586
2024-11-04 20:45:04 +01:00
Simon Hausmann
18db3210d6 Pin Python version for Skia builds on macOS
The Python version installed on the GH runners via homebrew removes the pipes module, which the Skia build needs until https://github.com/slint-ui/slint/issues/6615 is fixed.
2024-10-23 10:26:59 +02:00
Simon Hausmann
878a865322 Add generic xtensa-esp32-none-elf MCU packages 2024-10-02 14:58:49 +02:00
Simon Hausmann
e7353f71dc Allow invoking the cpp_package step by hand again
... it just won't have the extra cmake flags.
2024-09-23 16:24:44 +02:00
Olivier Goffart
2405877591 CI: use "nightly" instead of the version in the filename of the C++ packages 2024-09-13 19:13:04 +02:00
Simon Hausmann
40bad67f11 Build MCU target packages only once for the target
... instead of once per host as well. Instead, download the slint compiler as needed.
2024-08-29 11:23:09 +02:00
Simon Hausmann
b428ca1297 Package up Slint compiler separately 2024-08-29 11:23:09 +02:00
Simon Hausmann
5fabde4d7e
Fix MCU windows binary packages (#5923)
Use Ninja to generate them, so that the provided compiler is used, to
determine SIZEOF_VOID_P, and make sure to also use the arm compiler for
feature detection on Windows.
2024-08-23 21:08:10 +02:00
Simon Hausmann
9650aa0aae Re-organize c++ esp-idf binary packaging
Sort the packages by idf target, so that we can also enable support for esp-println and esp-backtrace.
2024-08-23 11:35:18 +02:00
Simon Hausmann
b61ddbfa8f
Remove apple silicon esp-idf C++ package: the xtensa gcc also has issues on aarch64 oddly 2024-08-22 23:02:40 +02:00
Simon Hausmann
126d63f5f8
Remove generic arm package with Apple silicon host: no gcc :( 2024-08-22 22:58:15 +02:00
Simon Hausmann
12b7390994
Fix Apple Sillicon runner name 2024-08-22 22:36:19 +02:00
Simon Hausmann
ee7845c63c
Fix yaml syntax 2024-08-22 22:26:25 +02:00
Simon Hausmann
ebc4c9021d
Build Apple Sillicon C++ packages 2024-08-22 22:24:52 +02:00
Simon Hausmann
d413fd5217
Build binary MCU packages as tarballs (#5900)
This includes xtensa for s3, esp riscv targets, as well as thumbv7
for STM32.

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-08-22 16:16:55 +02:00
Simon Hausmann
089e6280ab Fix cpp package build in the CI
macOS-11 is gone from the GH CI.
2024-07-02 08:53:10 +02:00
Simon Hausmann
3be6e641c6 Python: Attempt to build python packages with the same features as the nodejs/tool/etc. binaries 2024-06-18 09:43:37 -07:00
Aurindam Jana
3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00
Aurindam Jana
9a3aa265d5
Update Royalty-free license (#5257)
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00
Aurindam Jana
0cfeec1a31
Update Slint Community License (#4994)
Updated the version from 1.1 to 1.2 
Renamed the header to "Slint Royalty-free Desktop, Mobile, and Web Applications License"
Added definition of "Mobile Application" and grant of right
Moved "Limitations" to 3rd section and "License Conditions - Attributions" to 2nd section
Added flexibility to choose between showing "MadeWithSlint" as a dialog/splash screen or on a public webpage
Moved the para on copyright notices to section under "Limitations"
2024-04-15 15:18:55 +02:00
Olivier Goffart
c399447c93 C++ package: use Qt on Linux, not on Windows/Mac
Commit 4b4a7d6ff2 attempted to remove the
Qt from the C++ package on Windows, but infortunately, it removed the
setup of Qt on Linux instead of Windows.

As a result, 1.4.x binary packages on Linux are not build with Qt, and
on Windows are build with Qt but no longer ship Qt so are broken

In the master branch we no longer use Qt by default already on Windows
even if it is installed.
But this patch restore the fact that the binary package are built with
Qt on Linux
2024-02-20 11:23:23 +01:00
Tobias Hunger
8eea2851b7 ci: Format all yaml files with our prettier configuration
No code change, just prettier doing its thing in this change!
2024-02-16 19:10:56 +01:00
Simon Hausmann
1f84ce5a0e Fix nightly builds failing
Don't try to match for an Os runner that doesn't exist - github will time out.

Amends 3d3b0ae994
2024-02-08 18:26:07 +01:00
Simon Hausmann
3d3b0ae994 Prospective fix for C++ package creation
upload-artifact v4 requires a unique artifact name, instead of "merging": https://github.com/actions/upload-artifact?tab=readme-ov-file#v4---whats-new

So assign os version independent suffixes and use those in the release step.
2024-02-05 13:22:16 +01:00
Olivier Goffart
236f03b96e CI: update github action dependencies
Looked at warning of actions that still uses old node version and update
the onces that had a new release
2024-02-02 12:09:07 +01:00
Simon Hausmann
0abcf45e82 Remove hacks in the CI for selecting backend-linuxkms-noseat
The feature flag should be safe to enable on all platforms, it'll just be a no-op backend.
2024-01-27 12:47:40 +01:00