Skip to content

fix: cache importstr and importbin values #2289

fix: cache importstr and importbin values

fix: cache importstr and importbin values #2289

Workflow file for this run

name: Pull Request Validation
on:
pull_request:
branches: [master]
types: [assigned, opened, synchronize, reopened]
permissions:
contents: read
id-token: write # Needed for JFrog OIDC on internal PRs; unavailable for fork PRs
jobs:
# Forks cannot use org runner groups; use GitHub-hosted runners instead.
build-jvm:
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
timeout-minutes: 60
name: Sjsonnet jvm build
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0
- uses: ./.github/actions/setup-build
with:
sbt: 'true'
- name: Check Formatting
run: ./mill -j1 "_.jvm[_].__.checkFormat"
- name: Run mill tests
run: ./mill -j1 "_.jvm[_].__.test"
- name: Run sbt tests
run: sbt test
build-graal:
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
timeout-minutes: 60
name: Sjsonnet Graal Native build
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0
- uses: ./.github/actions/setup-build
- name: Run Native Image Test Suites
run: sjsonnet/test/graalvm/run_test_suites.py
build-other:
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
lang: ['js', 'wasm', 'native']
name: Sjsonnet ${{ matrix.lang }} build
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0
- uses: ./.github/actions/setup-build
with:
node: ${{ matrix.lang == 'js' || matrix.lang == 'wasm' }}
sbt: 'true'
- name: Check Formatting
run: ./mill -j1 _.${{ matrix.lang }}[_].__.checkFormat
- name: Pre-resolve dependencies
run: |
for i in 1 2 3; do
if timeout 180 ./mill -j1 _.${{ matrix.lang }}[_].__.resolvedMvnDeps; then
exit 0
fi
echo "Pre-resolution attempt $i failed, retrying..."
done
echo "Pre-resolution failed after 3 attempts"
exit 1
- name: Run mill tests for ${{ matrix.lang }}
run: ./mill -j1 _.${{ matrix.lang }}[_].__.test