Skip to content

mlib: frequencies accepts generators as well #2107

mlib: frequencies accepts generators as well

mlib: frequencies accepts generators as well #2107

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI
on:
push:
paths-ignore:
- CHANGES
- Dockerfile
- Dockerfile.distroless
- "**.md"
- "**.txt"
- "**.html"
- "**.completions"
- "scribbles/**"
branches: [ master ]
pull_request:
paths-ignore:
- CHANGES
- Dockerfile
- "**.md"
- "**.txt"
- "**.html"
- "**.completions"
- "scribbles/**"
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
java: [ '8', '17', '21', '23', '24-ea' ]
name: Java ${{ matrix.Java }} CI
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Cache Maven repo
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Build with Maven
run: |
mvn -V -B clean install site --file pom.xml -Djdk.console=jdk.jshell -Djavac.target=`echo "${{ matrix.java }}" | sed -e "s/-ea//g"` \
&& cp lambda/target/jmurmel.jar . \
&& cp samples.murmel-mlib/mlib.lisp .
- name: Upload Jar, mlib, docs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: jmurmel-temurin-${{ matrix.java }}
path: |
jmurmel.jar
mlib.lisp
murmel-langref.md
mlib.md
murmel-langref.html
mlib.html
LICENSE
- name: Create W64 launcher
if: ${{ matrix.java == '8' }}
run: |
mvn -V -B package -pl scripts -Dlaunch4j.skip=false \
&& cp scripts/target/jmurmel.exe . \
&& cp samples.murmel-mlib/mlib.lisp .
- name: Upload launch4j exe, mlib, docs
if: ${{ matrix.java == '8' }}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: jmurmel-w64-slim
path: |
jmurmel.exe
mlib.lisp
murmel-langref.md
mlib.md
murmel-langref.html
mlib.html
LICENSE
legal/launch4j/*