termux-app: Bump version to googleplay.2025.01.18 #187
This file contains 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: Check | |
on: | |
push: | |
jobs: | |
actionlint: | |
name: Lint GitHub workflows | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download actionlint | |
id: get_actionlint | |
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
- name: Check GitHub workflows | |
run: ${{ steps.get_actionlint.outputs.executable }} -color | |
check: | |
name: Check gradle build (java ${{ matrix.javaVersion }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
javaVersion: [17, 21, 23] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.javaVersion }} | |
- name: Lint | |
run: ./gradlew lint | |
- name: Test | |
run: ./gradlew test | |
- name: Assemble Debug | |
shell: bash | |
run: | | |
./gradlew assembleDebug | |
DIRNAME=upload/termux-debug-apks-"$GITHUB_SHA" | |
mkdir -p "$DIRNAME" | |
shopt -s globstar; for file in termux-*/**/*.apk; do FILENAME="$(basename "$file")"; cp "$file" "$DIRNAME"/"${FILENAME/.apk/-$GITHUB_SHA.apk}"; done | |
- uses: actions/upload-artifact@v4 | |
if: matrix.javaVersion == '21' | |
with: | |
name: termux-debug-apks-${{ github.sha }} | |
path: upload/ | |
gradle-wrapper-validation: | |
name: Validate gradle wrappers | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/actions/wrapper-validation@v4 |