diff --git a/.github/workflows/android-check.yaml b/.github/workflows/android-check.yaml index af1ec2ebb..55ae3f669 100644 --- a/.github/workflows/android-check.yaml +++ b/.github/workflows/android-check.yaml @@ -1,7 +1,5 @@ name: Android Check on: - schedule: - - cron: '0 1 * * *' # Once per day at 01:00 UTC workflow_dispatch: # Manual trigger push: branches: @@ -70,6 +68,12 @@ jobs: shell: bash run: ./configure.sh + - name: Download MWM files + shell: bash + run: | + wget https://cdn.comaps.app/maps/latest/World.mwm -P ./data/ + wget https://cdn.comaps.app/maps/latest/WorldCoasts.mwm -P ./data/ + - name: Configure ccache uses: hendrikmuhs/ccache-action@v1.2 with: diff --git a/.github/workflows/ios-check.yaml b/.github/workflows/ios-check.yaml index f879e03c8..ce9be5a05 100644 --- a/.github/workflows/ios-check.yaml +++ b/.github/workflows/ios-check.yaml @@ -1,6 +1,9 @@ name: iOS Check on: workflow_dispatch: # Manual trigger + push: + branches: + - main jobs: ios-check: @@ -33,6 +36,12 @@ jobs: shell: bash run: ./configure.sh + - name: Download MWM files + shell: bash + run: | + wget https://cdn.comaps.app/maps/latest/World.mwm -P ./data/ + wget https://cdn.comaps.app/maps/latest/WorldCoasts.mwm -P ./data/ + - name: Configure XCode cache uses: irgaly/xcode-cache@v1 with: diff --git a/docs/workflows.md b/docs/workflows.md new file mode 100644 index 000000000..bd6fb171e --- /dev/null +++ b/docs/workflows.md @@ -0,0 +1,7 @@ +# How works CI? + +CI Codeberg is limited and cannot be used for now to build regularly apps and executes tests. +To limit regressions, we have enabled temporary Github CI on the [Github Mirror](https://github.com/comaps/comaps) to build Android and IOS app and execute linter each time we sync the mirror. + +- [Android CI](https://github.com/comaps/comaps/actions/workflows/android-check.yaml) +- [IOS CI](https://github.com/comaps/comaps/actions/workflows/ios-check.yaml)