Upgrade libs #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Examples | |
| 'on': | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| discover_modules: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| modules: ${{ steps.set-modules.outputs.modules }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Find all build.gradle.kts files and extract module paths | |
| id: set-modules | |
| run: |- | |
| # Find all build.gradle.kts files except the root one | |
| MODULES=$(find . -type f -name "build.gradle.kts" -not -path "./build.gradle.kts" | sed -e 's|^./||' -e 's|/build.gradle.kts||' | sed -e 's|/|-|g' | awk '{print "\":" $0 "\""}' | tr '\n' ',' | sed 's/,$//') | |
| echo "modules=[${MODULES}]" >> $GITHUB_OUTPUT | |
| echo "Found modules: [$MODULES]" | |
| shell: bash | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - discover_modules | |
| strategy: | |
| matrix: | |
| module: | |
| - ${{ fromJson(needs.discover_modules.outputs.modules) }} | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Setup Java | |
| uses: actions/[email protected] | |
| with: | |
| java-version: '21' | |
| distribution: temurin | |
| - name: Build and test module | |
| run: ./gradlew ${{ matrix.project }}:build | |
| shell: bash | |
| - name: Tag automerge branch | |
| if: github.event_name == 'pull_request' | |
| uses: TimonVS/[email protected] | |
| with: | |
| configuration-path: .github/pr-labeler.yml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ORG_PUBLIC_REPO_RELEASE_TRIGGERING }} |