Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Dec 14, 2024
1 parent 84d4f59 commit 547308f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
- main
pull_request:
workflow_call:
inputs:
run_all:
type: boolean
description: 'Run all jobs regardless of path filters'
required: false
default: false

jobs:
cancel:
Expand Down Expand Up @@ -47,12 +53,10 @@ jobs:
- 'example/ios/**'
android:
- '**/android/**'
- name: Debug event_name
run: echo "Event name is ${{ github.event_name }}"
windows:
needs: filter
if: ${{ needs.filter.outputs.windows_changed == 'true' || needs.filter.outputs.common_changed == 'true' || github.event_name == 'workflow_call' }}
if: ${{ needs.filter.outputs.windows_changed == 'true' || needs.filter.outputs.common_changed == 'true' || inputs.run_all == 'true' }}
runs-on: windows-latest
timeout-minutes: 30
strategy:
Expand All @@ -78,7 +82,7 @@ jobs:
macos:
needs: filter
if: ${{ needs.filter.outputs.macos_changed == 'true' || needs.filter.outputs.common_changed == 'true' || github.event_name == 'workflow_call' }}
if: ${{ needs.filter.outputs.macos_changed == 'true' || needs.filter.outputs.common_changed == 'true' || inputs.run_all == 'true' }}
runs-on: macos-${{ matrix.macos-version }}
timeout-minutes: 30
strategy:
Expand Down Expand Up @@ -117,7 +121,7 @@ jobs:
ios:
needs: filter
if: ${{ needs.filter.outputs.ios_changed == 'true' || needs.filter.outputs.common_changed == 'true' || github.event_name == 'workflow_call' }}
if: ${{ needs.filter.outputs.ios_changed == 'true' || needs.filter.outputs.common_changed == 'true' || inputs.run_all == 'true' }}
runs-on: macos-14
timeout-minutes: 60
strategy:
Expand Down Expand Up @@ -172,7 +176,7 @@ jobs:

android:
needs: filter
if: ${{ needs.filter.outputs.android_changed == 'true' || needs.filter.outputs.common_changed == 'true' || github.event_name == 'workflow_call' }}
if: ${{ needs.filter.outputs.android_changed == 'true' || needs.filter.outputs.common_changed == 'true' || inputs.run_all == 'true' }}
timeout-minutes: 60
runs-on: macos-13
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
test:
needs: analyze
uses: ./.github/workflows/ci.yml
with:
run_all: 'true'
publish:
needs: test
permissions:
Expand Down

0 comments on commit 547308f

Please sign in to comment.