-
Notifications
You must be signed in to change notification settings - Fork 666
Copy over build tools workflows #7660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| name: Create release (build tools) | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| product: | ||
| description: Which product to make a release of ? | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - app-distribution | ||
| - crashlytics | ||
| - performance | ||
|
|
||
| env: | ||
| ARTIFACTS: ${{ github.workspace }}/build/artifacts | ||
|
|
||
| jobs: | ||
| make-app-distribution-release: | ||
| runs-on: ubuntu-latest | ||
| if: inputs.product == 'app-distribution' | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
| cache: gradle | ||
| - name: Make release for Firebase App Distribution | ||
| run: | | ||
| ./gradlew \ | ||
| -Dorg.gradle.project.buildDir=${ARTIFACTS} \ | ||
| -Dmaven.repo.local=${ARTIFACTS} \ | ||
| :firebase-appdistribution-gradle:publishToMavenLocal | ||
| cd ${ARTIFACTS} | ||
| zip -r m2repository.zip com | ||
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | ||
| with: | ||
| name: artifacts | ||
| path: ${{ env.ARTIFACTS }} | ||
|
|
||
| make-crashlytics-release: | ||
| runs-on: ubuntu-latest | ||
| if: inputs.product == 'crashlytics' | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
| cache: gradle | ||
| - name: Make release for Firebase Crashlytics | ||
| run: | | ||
| ./gradlew \ | ||
| -Dorg.gradle.project.buildDir=${ARTIFACTS} \ | ||
| -Dmaven.repo.local=${ARTIFACTS} \ | ||
| :firebase-crashlytics-buildtools:publishToMavenLocal | ||
| ./gradlew \ | ||
| -Dorg.gradle.project.buildDir=${ARTIFACTS} \ | ||
| -Dmaven.repo.local=${ARTIFACTS} \ | ||
| :firebase-crashlytics-gradle:publishToMavenLocal | ||
| cd ${ARTIFACTS} | ||
| zip -r m2repository.zip com | ||
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | ||
| with: | ||
| name: artifacts | ||
| path: ${{ env.ARTIFACTS }} | ||
|
|
||
| make-performance-release: | ||
|
Comment on lines
+45
to
+73
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| runs-on: ubuntu-latest | ||
| if: inputs.product == 'performance' | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
| cache: gradle | ||
| - name: Make release for Firebase Performance | ||
| run: | | ||
| ./gradlew \ | ||
| -Dorg.gradle.project.buildDir=${ARTIFACTS} \ | ||
| -Dmaven.repo.local=${ARTIFACTS} \ | ||
| :firebase-perf-gradle:publishToMavenLocal | ||
| cd ${ARTIFACTS} | ||
| zip -r m2repository.zip com | ||
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | ||
| with: | ||
| name: artifacts | ||
| path: ${{ env.ARTIFACTS }} | ||
|
Comment on lines
+74
to
+96
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Perf Gradle Compatibility Tests | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 6 * * *' # Run daily at 6 AM | ||
| workflow_dispatch: # Allow manual triggering | ||
|
|
||
| jobs: | ||
| performance-plugin: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | ||
| with: | ||
| java-version: 17 | ||
| distribution: temurin | ||
| cache: gradle | ||
| - name: Run tests | ||
| id: tests | ||
| run: | | ||
| ./gradlew \ | ||
| :firebase-perf-gradle:test --tests \ | ||
| "com.google.firebase.perf.plugin.transform.InstrumentationApiCompatTest.gradleBuildRunsInstrumentationForAllVariants_latestGradleAndAgp" | ||
|
Comment on lines
+10
to
+25
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium