0.12.1 #65
Workflow file for this run
This file contains hidden or 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: Build | |
# on: push | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
CLOJARS_USERNAME: ${{secrets.CLOJARSUSERNAME}} | |
CLOJARS_PASSWORD: ${{secrets.CLOJARSPASSWORD}} | |
strategy: | |
matrix: | |
os: [macos-13, ubuntu-24.04] | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install Lein | |
uses: knicknic/[email protected] | |
with: | |
macos: brew install leiningen | |
linux: | | |
curl -O https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
chmod a+x lein | |
mv lein /usr/local/bin/ | |
- name: Build and deploy shared libraries | |
uses: knicknic/[email protected] | |
with: | |
macos: | | |
mkdir -p src/java/datalevin/dtlvnative/macosx-x86_64 | |
mkdir -p macosx-x86_64/resources/datalevin/dtlvnative/macosx-x86_64 | |
brew install libomp llvm | |
script/build-macos | |
cp src/*.dylib macosx-x86_64/resources/datalevin/dtlvnative/macosx-x86_64/ | |
cd macosx-x86_64 | |
lein deps | |
cd ../src/java | |
java -jar ~/.m2/repository/org/bytedeco/javacpp/1.5.11/javacpp-1.5.11.jar datalevin/dtlvnative/DTLV.java | |
cd ../.. | |
cp src/java/datalevin/dtlvnative/macosx-x86_64/*.dylib macosx-x86_64/resources/datalevin/dtlvnative/macosx-x86_64/ | |
cd macosx-x86_64 | |
lein run | |
lein deploy clojars | |
linux: | | |
mkdir -p linux-x86_64/resources/datalevin/dtlvnative/linux-x86_64 | |
mkdir -p src/java/datalevin/dtlvnative/linux-x86_64 | |
script/build | |
cp src/*.so linux-x86_64/resources/datalevin/dtlvnative/linux-x86_64 | |
cd linux-x86_64 | |
lein deps | |
cd ../src/java | |
java -jar ~/.m2/repository/org/bytedeco/javacpp/1.5.11/javacpp-1.5.11.jar datalevin/dtlvnative/DTLV.java | |
cd ../.. | |
cp src/java/datalevin/dtlvnative/linux-x86_64/*.so linux-x86_64/resources/datalevin/dtlvnative/linux-x86_64/ | |
cd linux-x86_64 | |
lein run | |
lein deploy clojars |