Skip to content

⚗️ Experiment with matrix for build #1469

⚗️ Experiment with matrix for build

⚗️ Experiment with matrix for build #1469

Workflow file for this run

# This file was generated using Kotlin DSL (.github/workflows/build-debug.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Build Universal Debug APK'
on:
push:
branches:
- 'main'
- 'tweak-gha'
pull_request: {}
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/build-debug.yaml'' && ''.github/workflows/build-debug.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/build-debug.yaml'''
build:
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
strategy:
matrix:
variant:
- 'Fdroid'
- 'Playstore'
- 'Github'
steps:
- id: 'step-0'
name: 'Set up JDK'
uses: 'actions/setup-java@v4'
with:
java-version: '17'
distribution: 'adopt'
- id: 'step-1'
uses: 'actions/checkout@v4'
- id: 'step-2'
name: 'Builds All APKs'
uses: 'gradle/gradle-build-action@v3'
with:
arguments: 'assemble${{ matrix("variant") }}Debug'

Check failure on line 49 in .github/workflows/build-debug.yaml

View workflow run for this annotation

GitHub Actions / Build Universal Debug APK

Invalid workflow file

The workflow is not valid. .github/workflows/build-debug.yaml (Line: 49, Col: 20): Unrecognized function: 'matrix'. Located at position 1 within expression: matrix("variant")