1309 Commits

Author SHA1 Message Date
renaud gaudin
d4517ecadc
removed max-parallel (we now use retries) 2023-11-23 11:21:42 +00:00
renaud gaudin
67ba638897
using our retry script, up to 5x on retcode 65 2023-11-23 11:21:42 +00:00
renaud gaudin
da9b285526
flush when printing so it appears on time 2023-11-23 11:21:42 +00:00
renaud gaudin
f5572eb4e1
Running a single job at once for CI and CD
Hopefully this will reduce the number of failures due to contacting Apple
2023-11-23 08:33:31 +00:00
renaud gaudin
447f202177
Added CI/CD badges 2023-11-23 07:45:57 +00:00
Kelson
ca909addaf
Merge pull request #546 from kiwix/ci-pr
External PR access to CI
2023-11-22 21:16:24 +01:00
Kelson
a1e178ea28
Merge branch 'main' into ci-pr 2023-11-22 21:16:08 +01:00
Kelson
eac6b3dff7
Merge pull request #544 from kiwix/cd
Introduce Continuous Deployment
2023-11-22 21:13:25 +01:00
tvision251
e801098cdf fix: localization spelling issue for iOS platform 2023-11-22 14:56:08 -05:00
renaud gaudin
6bd468a64b Introduce Continuous Deployment
Automatically building and deploying in Github Actions for Nightlies and Releases.

Triggered by the following:

- every day at 01:32am (nightly mode)
- manualy (nightly mode)
- on release publication (release mode)

This workflow makes extensive use of secrets with no additional safe-guard, given:

- `schedule` (nightly) runs only off `main` branch.
- `workflow_dispatch` (manual) can run on any in-repo branch (but uses the workflow from `main`)
- Release publication requires push access to repo.

There are thus two *modes*: Release and Nightly (also used on manual dispatch).
The mode sets the `VERSION` either to the YYYY-MM-DD date for nightly or the tag-name for the release.

It has four *targets*: `macOS dmg`, `macOS app-store`, `iOS ipa` and `iOS app-store`

- **macOS dmg**: universal notarized macOS App in a dmg uploaded to `Kiwix-$VERSION.dmg`
- **macOS app-store**: universal notarized macOS App uploaded to the App Store.
- **iOS ipa**: iOS App uploaded to `Kiwix-$VERSION.ipa`
- **iOS app-store**: iOS App uploaded to the App Store

Code Signing is *automatic* (xcode decides which one to use based on availability).
We use Apple Distribution one for the app-store targets. IPA uses Apple Development
and dmg uses Developer ID.

⚠️ This allows updates CI workflow to make use of the shared xcbuild action
2023-11-22 19:05:49 +01:00
Kelson
5285e176d0
Merge pull request #537 from tvision251/feature/24-localization
Added the localization
2023-11-22 19:00:19 +01:00
renaud gaudin
5cf9877233
External PR access to CI
Instead of accepting `pull_request` event which doesn't passes secrets,
we are now using `pull_request_target` event which does.

To prevent leaking secrets, we are using an initial job that sets the `environment`
dynamically based on the event.
If it's an external PR, then it deploys to `external` environment.

This `external` environment has been created, includes required secrets and mandates approval by automactic, kelson or rgaudin

Because `pull_request_target` is meant to run on `main` code and not PR's one, we also change the checkout ref.

With this setup, CI runs unattended for pushes on main or PRs from our own repo but requires validation for external ones

Note: this is based on April 2023 instructions at
https://iterative.ai/blog/testing-external-contributions-using-github-actions-secrets
2023-11-22 15:46:54 +00:00
renaud gaudin
6a8e254ed1
Introduce Continuous Deployment
Automatically building and deploying in Github Actions for Nightlies and Releases.

Triggered by the following:

- every day at 01:32am (nightly mode)
- manualy (nightly mode)
- on release publication (release mode)

This workflow makes extensive use of secrets with no additional safe-guard, given:

- `schedule` (nightly) runs only off `main` branch.
- `workflow_dispatch` (manual) can run on any in-repo branch (but uses the workflow from `main`)
- Release publication requires push access to repo.

There are thus two *modes*: Release and Nightly (also used on manual dispatch).
The mode sets the `VERSION` either to the YYYY-MM-DD date for nightly or the tag-name for the release.

It has four *targets*: `macOS dmg`, `macOS app-store`, `iOS ipa` and `iOS app-store`

- **macOS dmg**: universal notarized macOS App in a dmg uploaded to `Kiwix-$VERSION.dmg`
- **macOS app-store**: universal notarized macOS App uploaded to the App Store.
- **iOS ipa**: iOS App uploaded to `Kiwix-$VERSION.ipa`
- **iOS app-store**: iOS App uploaded to the App Store

Code Signing is *automatic* (xcode decides which one to use based on availability).
We use Apple Distribution one for the app-store targets. IPA uses Apple Development
and dmg uses Developer ID.

⚠️ This allows updates CI workflow to make use of the shared xcbuild action
2023-11-22 15:19:46 +00:00
tvision251
9ad28b71d1
Merge branch 'main' into feature/24-localization 2023-11-22 05:56:43 -05:00
tvision106
2c9f8d8cd5 CI/CD - apple developer team 2023-11-21 17:45:02 -05:00
BPH
accc2d2e2f
Merge pull request #536 from BPerlakiH/fix/518-open-link-in-new-tab-on-macos
Fix opening new tabs on macos(#518)
2023-11-21 09:16:46 +01:00
tvision106
d0e3101800 fix typo issue 2023-11-20 10:13:15 -05:00
tvision106
d6affef6d6 Merge branch 'feature/24-localization' of https://github.com/tvision251/apple into feature/24-localization 2023-11-20 10:11:22 -05:00
Balazs Perlaki-Horvath
d5ebdecb25 Updated to binding 2023-11-20 11:54:19 +01:00
Balazs Perlaki-Horvath
2ee5a7ceaa Merge remote-tracking branch 'upstream/main' into fix/518-open-link-in-new-tab-on-macos 2023-11-20 11:48:36 +01:00
Balazs Perlaki-Horvath
3c8672e5e1 Revert file 2023-11-20 10:52:39 +01:00
Balazs Perlaki-Horvath
b66288b631 Revert delegate split 2023-11-20 10:51:24 +01:00
Balazs Perlaki-Horvath
7be833cf26 Fix lint 2023-11-20 00:29:25 +01:00
Balazs Perlaki-Horvath
0ebf5313b3 Rename and revert 2023-11-20 00:28:07 +01:00
Balazs Perlaki-Horvath
1508b68f98 Fixlint 2023-11-20 00:18:15 +01:00
Balazs Perlaki-Horvath
b7be0b44b2 MacOS window restoration fixes 2023-11-19 23:46:12 +01:00
tvision106
095a6baac4 fix codefactor issue 2023-11-19 17:41:54 +01:00
tvision106
22e555dd39 fix some issues for long strings 2023-11-19 17:41:54 +01:00
tvision106
25c8ef322c fix codefactor issue 2023-11-19 17:41:54 +01:00
tvision106
df10ab25e2 fix codefactor issue 2023-11-19 17:41:54 +01:00
tvision106
3857568cbd Update the localization 2023-11-19 17:41:54 +01:00
ChrisLi
2e8c7935bc
Fix external link alert macOS (#539)
* view model

* handler

* notification name
2023-11-19 10:25:33 -05:00
Balazs Perlaki-Horvath
9c7779ac24 Project fixes for iOS build on device 2023-11-18 15:48:55 +01:00
Balazs Perlaki-Horvath
04f151d0e3 Merge branch 'fix/518-open-link-in-new-tab-on-macos' of github.com:BPerlakiH/Kiwix into fix/518-open-link-in-new-tab-on-macos 2023-11-18 15:44:43 +01:00
Balazs Perlaki-Horvath
d489a2f591 Reformat ViewModel 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
7b4e574d0f Reformat 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
0db61a180e Format 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
97a3940ce0 Fix format 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
bc9f59238d Format 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
21b33a1c76 Format 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
8f3cd6f371 Create dedicated script handler and web delegates 2023-11-17 17:38:34 +01:00
Balazs Perlaki-Horvath
fa16cfa28f Fix opening new tabs on macos(#518) 2023-11-17 17:38:34 +01:00
tvision106
d6cddd6e15 Merge branch 'feature/24-localization' of https://github.com/tvision251/apple into feature/24-localization 2023-11-17 11:38:02 -05:00
tvision106
b3ee97f07d fix codefactor issue 2023-11-17 17:35:26 +01:00
tvision106
9a41a6d949 fix some issues for long strings 2023-11-17 17:35:26 +01:00
tvision106
93de4e469e fix codefactor issue 2023-11-17 17:35:26 +01:00
tvision106
9fa13ea29e fix codefactor issue 2023-11-17 17:35:26 +01:00
tvision106
22c72ae2a2 Update the localization 2023-11-17 17:35:26 +01:00
Kelson
fba629ba98
Merge pull request #538 from kiwix/ci
Introducing Continuous Integration
2023-11-17 17:32:46 +01:00
renaud gaudin
66ee6f7759
using libkiwix release, set to 13.0.0 2023-11-17 16:10:20 +00:00