64 Commits

Author SHA1 Message Date
Benoit Pierre
bc83fc6c05 ci: update build configurations (#14069)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
Explicitly set `KODEBUG` in preparation for bumping base
with https://github.com/koreader/koreader-base/pull/2118.
2025-07-19 11:44:45 +02:00
Benoit Pierre
76eb1221c4 ci/macos: fix "Dump build timings" step (#13992)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
Update ninjatracing to account for latest ninja log format.
2025-06-26 08:57:03 +02:00
Benoit Pierre
37c12d9d7a ci/macos: no need to install p7zip
7-zip is already part of the GA image.
2025-05-04 21:36:22 +02:00
Benoit Pierre
9d4efb1c9f ci/macos: fix error annotations
```
cmake 3.31.6 is already installed
To upgrade to 4.0.1, run:
  brew upgrade cmake
```
2025-05-04 21:36:22 +02:00
Frans de Jonge
4638929e86 Issue template: ask for firmware version (#13637)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
It wasn't in the old template, and I didn't think of it for #13633

See #13636
2025-04-20 21:46:29 +02:00
Frans de Jonge
0e2a462d52 Issue template: convert to form and add log instructions for deskop (#13633)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
Follow-up to <https://github.com/koreader/koreader/pull/13632>, also see <https://github.com/koreader/koreader/pull/13619#issuecomment-2816833050>.
2025-04-20 11:12:32 +02:00
Benoit Pierre
9eeb23104f ci/macos: tweak ccache handling (#13141)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Ensure the cache does not get removed after being stale when not bumping base for more than 7 days.
2025-01-25 23:05:14 +01:00
Benoit Pierre
ea5d424868 tests: use new runner 2024-11-25 22:55:57 +01:00
Benoit Pierre
980b50b370 ci/macos: reduce workflow file differences with base version 2024-11-23 20:56:22 +01:00
Benoit Pierre
eaea029f50 ci/macos: bump ccache version to 4.10.2 2024-11-23 20:56:22 +01:00
Benoit Pierre
83d14ad77f ci/macos: enable tests 2024-11-23 20:56:22 +01:00
Benoit Pierre
c04023f1d1 make: factorize code for generating release updates (#12655)
Instead of splitting remove / exclusion of unwanted files in 2-3 places
(`all` rule, `update` rule, and update script in some cases), install
the same files in debug & release builds, and exclude unwanted stuff
when generating the update.

This should finally fix the CI issue with OCR tests (since we don't
remove the `data/dict` & `data/tessdata` directories on release build
anymore).
2024-11-23 20:48:37 +01:00
Benoit Pierre
0debdf0216 ci/macos: fix possible issue during brew install (#12767)
```
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /opt/homebrew
Could not symlink bin/pkg-config
Target /opt/homebrew/bin/pkg-config
is a symlink belonging to pkg-config@0.29.2. You can unlink it:
  brew unlink pkg-config@0.29.2

To force the link and overwrite all conflicting files:
  brew link --overwrite pkgconf

To list all files that would be deleted:
  brew link --overwrite pkgconf --dry-run

Possible conflicting files are:
/opt/homebrew/bin/pkg-config -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/bin/pkg-config
/opt/homebrew/share/aclocal/pkg.m4 -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/share/aclocal/pkg.m4
/opt/homebrew/share/man/man1/pkg-config.1 -> /opt/homebrew/Cellar/pkg-config@0.29.2/0.29.2_3/share/man/man1/pkg-config.1
```

This only happen with AMD64 runners, and when using the latest runner images
(e.g. when the luck of the draw yields 14.7.1 23H222 and not 14.7 23H124).
2024-11-21 08:47:31 +01:00
Benoit Pierre
92ab1f01bc ci/macos: fix homebrew packages install (#12382) 2024-08-19 20:17:14 +02:00
Benoit Pierre
3567a59bcb ci/macos: update binaries dump & check 2024-08-02 18:46:29 +02:00
Benoit Pierre
673f15f3ce ci/macos: install meson 2024-08-02 18:46:29 +02:00
Benoit Pierre
1add3b5772 make: directly include base main makefile 2024-07-31 08:45:48 +02:00
Benoit Pierre
817afe8ed7 ci/macos: pin XCode version (#12229)
Avoid breakage on runner image update, like the recent update
to XCode 15.4 on arm64 which breaks our (ancient) glib build.
2024-07-28 18:31:59 +02:00
Benoit Pierre
8dad62aa1b ci/macos: fix fallback cache key (#12188)
No wonder the macOS builds take so long…
2024-07-20 08:01:05 +02:00
Benoit Pierre
dba1fa886b ci/macos: add build timings 2024-07-19 22:43:42 +02:00
Benoit Pierre
e16bdc5dd4 ci/macos: update build dependency
- drop unneeded: gettext, gnu-getopt, grep, wget
- add new one for updated build system: findutils & util-linux
2024-07-19 22:43:42 +02:00
Benoit Pierre
2d438c98a3 ci/macos: move dependencies install at the start of the build
We need a more recent make anyway (or the newly added version check won't be happy).
2024-07-19 22:43:42 +02:00
Benoit Pierre
9162a8d69c ci/macos: drop Python setup
We don't need it (not yet, since we don't use meson).
2024-07-19 22:43:42 +02:00
mergen3107
16fcc38a3a Update bug_report.md with new location of verbose logging toggle (#12042)
Closes #11276
2024-06-17 15:35:17 +02:00
Benoit Pierre
41f4b1f2ac ci/macos: trim build dependencies
We actually don't need luarocks anymore for building (just testing).
2024-06-11 21:34:40 +02:00
Benoit Pierre
5dfdbd06eb ci/macos: silence brew warnings 2024-06-11 21:34:40 +02:00
Benoit Pierre
1105f83557 ci/macos: add arm64 job 2024-06-11 21:34:40 +02:00
Benoit Pierre
2f0e456a42 ci/macos: dump binaries runtime path & dependencies
Useful information for investigating issues with the bundle.
2024-05-30 07:54:22 +02:00
Benoit Pierre
4750b4a4cd ci/macos: drop unnecessary build dependencies 2024-05-29 22:02:06 +02:00
Benoit Pierre
404c7c0dfe ci: update build directory trimming before caching 2024-05-29 22:02:06 +02:00
Benoit Pierre
ea538900ba ci/macos: install ninja 2024-05-14 10:33:21 +02:00
Benoit Pierre
b2d495fcdd ci: force color output 2024-05-14 10:33:21 +02:00
Benoit Pierre
0aaa8e7c5b ci/macos: drop unnecessary permissions stanza 2024-05-14 10:33:21 +02:00
Benoit Pierre
f82cc31717 ci/macos: add caching to speedup workflow 2024-05-14 10:33:21 +02:00
Benoit Pierre
a12b075e07 ci/macos: avoid concurrent workflow runs on the same ref 2024-05-14 10:33:21 +02:00
Benoit Pierre
087ddd1510 ci: small macOS cleanups
Reduce differences with the configuration used on koreader-base.
2024-04-30 22:59:50 +02:00
Benoit Pierre
7392dd2ad4 ci: tweak macOS CI checkout phase
Use the same parameters as for the koreader-base job (faster).
2024-04-30 22:59:50 +02:00
Benoit Pierre
54ded2c578 ci: fix macOS build
Work around the fact that the lua@5.1 brew formula has been disabled.

Additionally, drop ragel (no necessary anymore).
2024-04-30 22:59:50 +02:00
dependabot[bot]
9d94ab38f3 [CI] Bump actions/upload-artifact from 3 to 4 (#11242)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 11:13:00 +01:00
dependabot[bot]
df19c2a0da Bump actions/checkout from 3 to 4 (#10890)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [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/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:49:39 +02:00
yparitcher
f588edd9b1 mac: github actions macos-13 (#10404)
github no longer supports 10.15 so use 13 just to ensure the build does not break
2023-05-14 15:02:01 -04:00
Frans de Jonge
1a3a210392 Revert "[CI] Set macOS Github Action to macOS 12.00 (#9856)" (#9864)
This reverts commit 991b6ab48b.
2022-12-06 08:46:11 +01:00
Jason Benwell
991b6ab48b [CI] Set macOS Github Action to macOS 12.00 (#9856)
Doing a debug build using MACOSX_DEPLOYMENT_TARGET=12.00 produces a build that seems to work. The debug part isn't optimal but at least it builds and runs.
2022-12-02 20:43:45 +01:00
NiLuJe
e98bf342e7 GH: Mention that toggling verbose debug logging requires a restart.
Otherwise, stuff that inherits logger functions on require don't get
logged (i.e., framebuffer), and the debug guards aren't hooked.
2022-10-29 22:55:20 +02:00
NiLuJe
7b9f02e1ac GH: Extend the issue template to request verbose debug logs for non-crash issues. (#9585)
Because it's literally 90% of our first replies :/.
2022-10-05 17:37:33 +02:00
Martín Fernández
30e499d4a9 [CI] Downgrade macOS Github Action to macOS 10.15 (#9279)
Both BigSur and Monterey produce a broken `crengine.dylib`.

Only github actions are affected as local builds seem to work just fine: https://github.com/koreader/koreader/issues/8686#issuecomment-1166656492
2022-07-04 12:17:33 +02:00
dependabot[bot]
2fb45b2c6d [CI] Bump actions/upload-artifact from 2 to 3 (#9214)
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)
2022-06-15 09:43:43 +02:00
dependabot[bot]
bdbc130cfe [CI] Bump actions/checkout from 2 to 3 (#9215)
- [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/v2...v3)
2022-06-15 09:38:09 +02:00
Naveen
f85d3b0beb chore: Included githubactions in the dependabot config (#9213)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
2022-06-15 08:35:50 +02:00
Naveen
ee080d63b7 chore: Set permissions for GitHub actions (#9207)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
2022-06-14 19:31:42 +02:00