Fix clean builds from scratch #57
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: CI checks | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Pandoc | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y pandoc make gcc g++ | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.12 | |
- name: Install python packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
pip install cython | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Set up JDK 18 | |
uses: actions/[email protected] | |
with: | |
java-version: '18' | |
distribution: 'temurin' # Note to self: This IS OpenJDK | |
- name: Setup Android SDK | |
uses: android-actions/[email protected] | |
- name: Check build prerequisites | |
run: | | |
bash check-build-prerequisites.sh | |
- name: Run gradle build | |
run: | | |
./gradlew --no-daemon build | |
- name: Run post-build checks | |
run: | | |
bash tools/workflows/check-translations.sh |