Commit graph

20 commits

Author SHA1 Message Date
Daniel Eklöf
0dc105d0e4
ci: rename .woodpecker.yml -> .woodpecker.yaml
According to the latest woodpecker docs, this is the only supported
extension.
2024-02-23 17:59:01 +01:00
Daniel Eklöf
50a28fe1e8
ci: replace 'pipeline' with 'steps'
Hopefully fixes:

  failed to parse pipeline: "pipeline:" got removed, use "steps:" instead
2023-08-18 16:46:09 +02:00
Daniel Eklöf
76e471c4bc
ci: alpine no longer allows pip installing to the system installation 2023-07-25 16:45:29 +02:00
Daniel Eklöf
b4e418f251
ci: try alpine edge instead of latest 2023-05-26 10:20:05 +02:00
Daniel Eklöf
0bc934070c
ci (woodpecker): do a second release build, using clang instead of gcc 2023-03-31 13:16:11 +02:00
Daniel Eklöf
65ecb77737
ci: codespell: ignore ‘zar’ (user who contributed) 2022-08-20 18:25:05 +02:00
Daniel Eklöf
155a2e4790
ci: enable -Db_pgo=generate on release builds
Hopefully, this’ll catch missing stubs in pgo/pgo.c in the future.
2022-04-23 11:24:44 +02:00
Daniel Eklöf
8c66dbbd78
ci: codespell: don’t uppercase words in the exclude list 2022-02-05 17:31:16 +01:00
Daniel Eklöf
1b0fac49ed
ci: fix codespell -L usage, take 2 2022-02-05 17:30:09 +01:00
Daniel Eklöf
e5926ad6be
ci: fix codespell -L usage 2022-02-05 17:29:23 +01:00
Daniel Eklöf
bfab825b02
ci: use fcft master branch 2022-02-05 17:27:30 +01:00
Daniel Eklöf
6c38c2358a
ci: allow ‘Ser’ (as in Simon Ser) in Codespell 2022-02-05 17:26:14 +01:00
Daniel Eklöf
e0227266ca
fcft: adapt to API changes in fcft-3.x
Fcft no longer uses wchar_t, but plain uint32_t to represent
codepoints.

Since we do a fair amount of string operations in foot, it still makes
sense to use something that actually _is_ a string (or character),
rather than an array of uint32_t.

For this reason, we switch out all wchar_t usage in foot to
char32_t. We also verify, at compile-time, that char32_t used
UTF-32 (which is what fcft expects).

Unfortunately, there are no string functions for char32_t. To avoid
having to re-implement all wcs*() functions, we add a small wrapper
layer of c32*() functions.

These wrapper functions take char32_t arguments, but then simply call
the corresponding wcs*() function.

For this to work, wcs*() must _also_ be UTF-32 compatible. We can
check for the presence of the  __STDC_ISO_10646__ macro. If set,
wchar_t is at least 4 bytes and its internal representation is UTF-32.

FreeBSD does *not* define this macro, because its internal wchar_t
representation depends on the current locale. It _does_ use UTF-32
_if_ the current locale is UTF-8.

Since foot enforces UTF-8, we simply need to check if __FreeBSD__ is
defined.

Other fcft API changes:

* fcft_glyph_rasterize() -> fcft_codepoint_rasterize()
* font.space_advance has been removed
* ‘tags’ have been removed from fcft_grapheme_rasterize()
* ‘fcft_log_init()’ removed
* ‘fcft_init()’ and ‘fcft_fini()’ must be explicitly called
2022-02-05 17:00:54 +01:00
Daniel Eklöf
b1043a72f8
ci: fcft:text-shaping -> fcft:grapheme-shaping + fcft:run-shaping 2021-11-26 20:08:45 +01:00
Daniel Eklöf
154caae35a
ci: fcft: replace text-shaping with grapheme-shaping+run-shaping 2021-11-20 11:24:13 +01:00
Daniel Eklöf
0978b442c6
ci: also build release branches 2021-10-23 16:05:00 +02:00
Daniel Eklöf
1c1b2bd101
ci: run “foot --version” and “footclient --version” after each build 2021-10-11 20:18:26 +02:00
Daniel Eklöf
7d30bccad8
generate-version: handle git repo not having any tags 2021-10-11 20:11:41 +02:00
Daniel Eklöf
dfd9590931
ci: limit builds to the master branch (and pulls targeting it) 2021-10-10 19:07:21 +02:00
Daniel Eklöf
62e67a26f5
ci: codeberg CI 2021-10-10 18:10:09 +02:00