feat: initial commit #41
This file contains hidden or 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: Build with JDK 17 on Windows | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: {} | |
| # cancel superseded runs on the same branch/PR to save CI minutes. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository (incl. font submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 1 | |
| - name: Verify font submodules were checked out | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| for module in figlet-fonts-xero; do | |
| dir="$module/src/main/resources/fonts" | |
| count=$(find "$dir" -type f \( -name '*.flf' -o -name '*.tlf' \) 2>/dev/null | wc -l) | |
| echo "Found $count font file(s) in $dir" | |
| if [ "$count" -eq 0 ]; then | |
| echo "::error::$module has no font files. Was the git submodule checked out (submodules: recursive)?" | |
| exit 1 | |
| fi | |
| done | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven/JDK 17 on Windows | |
| run: mvn --batch-mode --file pom.xml clean verify | |