|
87 | 87 | **/build/reports/ |
88 | 88 | **/build/test-results/ |
89 | 89 |
|
90 | | - # todo: tmp, remove |
91 | | - bundle_analysis: |
92 | | - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
93 | | - needs: |
94 | | - - fetch_prebuilts |
95 | | - runs-on: macos-latest |
96 | | - name: Test ${{ matrix.name }} |
97 | | - timeout-minutes: 30 |
98 | | - |
99 | | - steps: |
100 | | - - uses: actions/checkout@v6 |
101 | | - - name: Validate Gradle Wrapper |
102 | | - uses: gradle/actions/wrapper-validation@v6 |
103 | | - - uses: actions/cache@v5 |
104 | | - with: |
105 | | - path: ~/.konan |
106 | | - key: ${{ runner.os }}-${{ hashFiles('**/.lock') }} |
107 | | - - name: Set up JDK 25 |
108 | | - uses: actions/setup-java@v5 |
109 | | - with: |
110 | | - java-version: '25' |
111 | | - distribution: 'temurin' |
112 | | - - name: Set up Gradle |
113 | | - uses: gradle/actions/setup-gradle@v6 |
114 | | - with: |
115 | | - cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} |
116 | | - |
117 | | - - name: Set up XCode |
118 | | - if: runner.os == 'macOS' |
119 | | - uses: maxim-lobanov/setup-xcode@v1 |
120 | | - with: |
121 | | - # TODO: Update to latest-stable once GH installs iOS 26 simulators |
122 | | - xcode-version: '^16.4.0' |
123 | | - - name: Download prebuilts |
124 | | - uses: actions/download-artifact@v8 |
125 | | - with: |
126 | | - artifact-ids: ${{ needs.fetch_prebuilts.outputs.artifact_id }} |
127 | | - path: internal/prebuild-binaries/build/output/ |
128 | | - |
129 | | - - name: Generate publications |
130 | | - run: | |
131 | | - ./gradlew \ |
132 | | - --no-configuration-cache \ |
133 | | - -PhasPrebuiltAssets=true \ |
134 | | - -PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \ |
135 | | - -PsigningInMemoryKeyId="${{ secrets.SIGNING_KEY_ID }}" \ |
136 | | - -PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \ |
137 | | - -Ppowersync.binaries.allPlatforms="true" \ |
138 | | - generatePublishingBundle |
139 | | -
|
140 | | - - name: Inspect publication |
141 | | - run: | |
142 | | - ./internal/analyze-bundle.py |
143 | | - zip -r build/sonatypeBundle.zip build/sonatypeBundle/ |
144 | | -
|
145 | | - - name: Upload for further analysis |
146 | | - uses: actions/upload-artifact@v7 |
147 | | - with: |
148 | | - name: sonatype-bundle |
149 | | - path: build/sonatypeBundle.zip |
150 | | - retention-days: 1 |
151 | | - |
152 | 90 | android_emulator: |
153 | 91 | if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
154 | 92 | runs-on: ubuntu-latest |
|
0 commit comments