Skip to content

mobiletest

mobiletest #27

Workflow file for this run

name: mobiletest
on:
workflow_dispatch:
jobs:
mac:
runs-on: macos-14
steps:
- name: Git checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: 'true'
# - uses: actions/download-artifact@v1
# with:
# name: jar
# path: .
# - name: Cache GraalVM
# uses: actions/cache@v1
# id: cache-graalvm-m1
# with:
# path: ~/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
# key: ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
# restore-keys: |
# ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
- name: Setup Clojure
# You may pin to the exact commit or the version.
# uses: DeLaGuardo/setup-clojure@5042876523f30f5efcf1d6feaa48bd1498d7814f
uses: DeLaGuardo/[email protected]
with:
# Clojure CLI version to make available on the path.
cli: 1.11.1.1435
- name: Install dependencies
run: clojure -P
- name: Download GraalVM
run: |
cd ~
if ! [ -d graalvm-ce-java17-22.0.0.2 ]; then
curl -O -sL "https://github.com/gluonhq/graal/releases/download/gluon-22.1.0.1-Final/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final.tar.gz"
sudo xattr -r -d com.apple.quarantine graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final.tar.gz
tar xzf graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final.tar.gz
fi
# - name: Install Graalvm components
# run: |
# export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home"
# $GRAALVM_HOME/bin/gu install llvm-toolchain
# $GRAALVM_HOME/bin/gu install native-image
# - name: Cache Static JDK
# uses: actions/cache@v3
# with:
# key: staticjdk
# path: |
# build/staticjdk
# build/
- name: Download Static JDK
run: |
scripts/download-deps
- name: Build macOS native image
run: |
export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home"
export JAVA_HOME="$GRAALVM_HOME"
export PATH="$JAVA_HOME/bin:$PATH"
/bin/bash scripts/compile-shared
- uses: actions/upload-artifact@v1
with:
path: library/build/out/bb.o
name: bb.o
- uses: actions/upload-artifact@v1
with:
path: target/bb.jar
name: bb.jar
- name: Build app
run: |
export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home"
export JAVA_HOME="$GRAALVM_HOME"
export PATH="$JAVA_HOME/bin:$PATH"
scripts/build-shared