-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (47 loc) · 1.18 KB
/
build.yml
File metadata and controls
48 lines (47 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Generated from Workflow.pkl. DO NOT EDIT.
name: Build
'on':
push:
branches-ignore:
- main
- release/*
- dependabot/**
tags-ignore:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
java-version: '21'
distribution: temurin
cache: gradle
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@a0b538fa0b742a6aa35d6e2c169b4bd06d225a98 # v1
with:
cache-workspaces: pkl-html-highlighter
- name: Configure cargo
run: |-
cat <<EOF > ~/.cargo/config
[net]
git-fetch-with-cli = true
EOF
- name: Run Gradle Tests
run: |-
./gradlew \
--console=plain \
pklHtmlHighlighter
./gradlew \
--console=plain \
npmInstall buildRemoteSite