mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-21 23:03:11 +01:00
CI: Update to node.js-20 (#546)
This commit is contained in:
parent
be053b082c
commit
79aec5b9bc
2
.github/workflows/check-layouts.yml
vendored
2
.github/workflows/check-layouts.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- run: python3 gen_layouts.py
|
- run: python3 gen_layouts.py
|
||||||
- name: Check that the generated layouts.xml is uptodate, run python3 gen_layouts.py otherwise
|
- name: Check that the generated layouts.xml is uptodate, run python3 gen_layouts.py otherwise
|
||||||
run: git diff --exit-code
|
run: git diff --exit-code
|
||||||
|
2
.github/workflows/check-translations.yml
vendored
2
.github/workflows/check-translations.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- run: python3 sync_translations.py
|
- run: python3 sync_translations.py
|
||||||
- name: Check that strings files are uptodate, run python3 sync_translations.py otherwise
|
- name: Check that strings files are uptodate, run python3 sync_translations.py otherwise
|
||||||
run: git diff --exit-code
|
run: git diff --exit-code
|
||||||
|
11
.github/workflows/make-apk.yml
vendored
11
.github/workflows/make-apk.yml
vendored
@ -9,17 +9,18 @@ jobs:
|
|||||||
Build-Apk:
|
Build-Apk:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu' # See 'Supported distributions' for available options
|
distribution: 'zulu' # See 'Supported distributions' for available options
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Restore debug keystore from GitHub Secrets
|
- name: Restore debug keystore from GitHub Secrets
|
||||||
run: |
|
run: |
|
||||||
# Check if exist and use the secret named DEBUG_KEYSTORE
|
# Check if exist and use the secret named DEBUG_KEYSTORE
|
||||||
# The contents of the secret can be obtained -
|
# The contents of the secret can be obtained -
|
||||||
# from the debug.keystore.asc from you local folder (refer to CONTRIBUTING.md#Using the local debug.keystore on the Github CI actions)
|
# from the debug.keystore.asc from you local folder
|
||||||
|
# (refer to CONTRIBUTING.md Using the local debug.keystore on the Github CI actions)
|
||||||
if [[ ! "${{ secrets.DEBUG_KEYSTORE }}" = "" ]]; then
|
if [[ ! "${{ secrets.DEBUG_KEYSTORE }}" = "" ]]; then
|
||||||
echo "${{ secrets.DEBUG_KEYSTORE }}" > "debug.keystore.asc"
|
echo "${{ secrets.DEBUG_KEYSTORE }}" > "debug.keystore.asc"
|
||||||
if [[ -s "debug.keystore.asc" ]]; then
|
if [[ -s "debug.keystore.asc" ]]; then
|
||||||
@ -28,7 +29,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- name: Build debug APK
|
- name: Build debug APK
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
env:
|
env:
|
||||||
DEBUG_KEYSTORE: "debug.keystore"
|
DEBUG_KEYSTORE: "debug.keystore"
|
||||||
DEBUG_KEYSTORE_PASSWORD: debug0
|
DEBUG_KEYSTORE_PASSWORD: debug0
|
||||||
@ -42,7 +43,7 @@ jobs:
|
|||||||
artifact="${artifact//\//-}" # replace slashes
|
artifact="${artifact//\//-}" # replace slashes
|
||||||
echo "artifact=${artifact}" >> $GITHUB_ENV
|
echo "artifact=${artifact}" >> $GITHUB_ENV
|
||||||
- name: Upload debug APK
|
- name: Upload debug APK
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "${{env.artifact}} debug_apk"
|
name: "${{env.artifact}} debug_apk"
|
||||||
path: build/outputs/apk/debug/*.apk
|
path: build/outputs/apk/debug/*.apk
|
||||||
|
Loading…
Reference in New Issue
Block a user