Custom varhandle #16
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: CI | |
on: | |
pull_request: | |
push: | |
branches: [ 'main' ] | |
release: | |
types: | |
- published | |
jobs: | |
fmt: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ '22' ] | |
scala: [ '2.13.12' ] | |
platform: [ 'JVM' ] | |
steps: | |
- name: Checkout current branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Scala and Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Run fmt | |
run: sbt scalafmtCheckAll | |
test: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 30 | |
needs: [ fmt ] | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ '21', '22' ] | |
scala: [ '2.13.12' ] | |
platform: [ 'JVM' ] | |
steps: | |
- name: Checkout current branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Run tests | |
run: sbt test | |
ci: | |
runs-on: ubuntu-20.04 | |
needs: [ test ] | |
steps: | |
- name: Aggregate of builds | |
run: echo "ci passed" | |
docs: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
pages: write | |
needs: [ ci ] | |
if: github.event_name != 'pull_request' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.11.0' | |
- name: Install and Build | |
run: | | |
npm install @diplodoc/cli -g | |
yfm -i docs -o ./build | |
touch ./build/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build |