Skip to content

Commit

Permalink
fixed CI issue with Java version
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Mar 5, 2024
1 parent 5f3c4a4 commit 3407bd8
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Loading submodules
run: git submodule update --init --recursive
- name: Work directory
run: pwd
- name: Loading secrets
env:
gservices: ${{ secrets.googleservices }}
aqicnkey: ${{ secrets.aqicnapikey }}
run: |
echo $gservices > ./app/google-services.json
echo $aqicnkey > ./app/src/main/res/values/api_aqicn.xml
- name: Build the app
run: ./gradlew build
- name: Checkout the code
uses: actions/checkout@v2

- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 17

- name: Loading submodules
run: git submodule update --init --recursive

- name: Loading secrets
env:
gservices: ${{ secrets.googleservices }}
aqicnkey: ${{ secrets.aqicnapikey }}
run: |
echo $gservices > ./app/google-services.json
echo $aqicnkey > ./app/src/main/res/values/api_aqicn.xml
- name: Build the app
run: ./gradlew build

0 comments on commit 3407bd8

Please sign in to comment.