0.9.7 #56
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: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
CLOJARS_USERNAME: ${{secrets.CLOJARSUSERNAME}} | |
CLOJARS_PASSWORD: ${{secrets.CLOJARSPASSWORD}} | |
strategy: | |
matrix: | |
os: [macos-13, ubuntu-20.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: echo "lein is already installed" | |
- name: Install Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
- name: Build and deploy static | |
uses: knicknic/[email protected] | |
with: | |
macos: | | |
script/build | |
cp src/*.a macos-latest-amd64/resources/dtlvnative/macos-latest-amd64/ | |
cp src/dtlv.h macos-latest-amd64/resources/dtlvnative/macos-latest-amd64/ | |
cp src/lmdb/libraries/liblmdb/lmdb.h macos-latest-amd64/resources/dtlvnative/macos-latest-amd64/lmdb/libraries/liblmdb/ | |
cd macos-latest-amd64 | |
lein deploy clojars | |
linux: | | |
sudo script/setup-musl | |
script/build-musl | |
cp src/*.a ubuntu-latest-amd64/resources/dtlvnative/ubuntu-latest-amd64/ | |
cp src/dtlv.h ubuntu-latest-amd64/resources/dtlvnative/ubuntu-latest-amd64/ | |
cp src/lmdb/libraries/liblmdb/lmdb.h ubuntu-latest-amd64/resources/dtlvnative/ubuntu-latest-amd64/lmdb/libraries/liblmdb/ | |
cd ubuntu-latest-amd64 | |
lein deploy clojars | |
- name: Build and deploy shared | |
uses: knicknic/[email protected] | |
with: | |
macos: | | |
script/build-macos-shared | |
mkdir -p macos-latest-amd64-shared/resources/dtlvnative/macos-latest-amd64-shared | |
cp src/lmdb/libraries/liblmdb/liblmdb.dylib macos-latest-amd64-shared/resources/dtlvnative/macos-latest-amd64-shared/ | |
cd macos-latest-amd64-shared | |
lein deploy clojars | |
linux: | | |
script/build | |
mkdir -p ubuntu-latest-amd64-shared/resources/dtlvnative/ubuntu-latest-amd64-shared | |
cp src/liblmdb.so ubuntu-latest-amd64-shared/resources/dtlvnative/ubuntu-latest-amd64-shared/ | |
cd ubuntu-latest-amd64-shared | |
lein deploy clojars | |
- name: Build and deploy cross compiled shared | |
uses: knicknic/[email protected] | |
with: | |
linux: | | |
script/build-zig |