feat: test building native clojure app using library, test with graalvm #22
Workflow file for this run
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: Clojure CI | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: SDK Tools setup | |
uses: jdx/mise-action@v2 | |
with: | |
install: true | |
cache: true | |
- name: Native Image setup | |
run: | | |
echo "JAVA_HOME=$(mise where java)" >> $GITHUB_ENV | |
echo "GRAALVM_HOME=$(mise where java)" >> $GITHUB_ENV | |
gu install native-image | |
- name: Run tests | |
run: make test | |
- name: Run clj-kondo linter | |
run: make lint | |
- name: Run build jar | |
run: make build | |
- name: Run build app | |
run: | | |
printenv | |
make build-native |