Optimize lstripChars, rstripChars, and stripChars via specialization … #325
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: Pull Request Validation | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
lang: ['jvm', 'js', 'native'] | |
java: ['11', '17'] | |
env: | |
# Set LANG=C to simulate least-common-denominator target deployment environments: | |
LANG: C | |
name: Sjsonnet build for ${{ matrix.lang }} on JDK ${{ matrix.java }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'zulu' | |
- name: Run mill tests for ${{ matrix.lang }} | |
run: ./mill _.${{ matrix.lang }}[_].test | |
- name: Compile with sbt | |
if: ${{ matrix.lang == 'jvm' }} | |
run: sbt compile bench/compile bench/jmh:compile | |
- name: Run sbt tests | |
if: ${{ matrix.lang == 'jvm' }} | |
run: sbt test |