Skip to content

Instantly share code, notes, and snippets.

@rdipardo
Last active August 7, 2022 21:12
Show Gist options
  • Save rdipardo/271c8c1476bd183fb3c4e45a4474b9f9 to your computer and use it in GitHub Desktop.
Save rdipardo/271c8c1476bd183fb3c4e45a4474b9f9 to your computer and use it in GitHub Desktop.
name: lacinia (Ubuntu)
on: [push]
jobs:
native-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Host Dependencies
run: |
sudo apt-get -qqy install \
build-essential \
libz-dev \
zlib1g-dev \
libfreetype6-dev
- name: Restore cache
uses: actions/cache@v2.1.6
with:
path: |
'~/.sdkman'
'~/.m2'
key: ${{ runner.os }}-lein-${{ hashFiles('project.clj') }}
restore-keys: ${{ runner.os }}-lein-
- name: Build
env:
TARGET: lacinia
run: |
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 21.2.0.r11-grl
sdk install leiningen
lein --version
gu -A install native-image
cd ${TARGET}
make deps
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment