Skip to content

Commit

Permalink
Add GitHub Actions for building Linux shared objects and macOS dynami…
Browse files Browse the repository at this point in the history
…c libraries (#1)

* Add GitHub Actions for building Linux shared objects

Using the oldest supported CentOS version for maximum compatibility

* Add GitHub Actions for building macOS dynamic libraries

Using the oldest supported macOS version for maximum compatibility
  • Loading branch information
Edward-Knight authored Feb 16, 2021
1 parent 8a64c37 commit 30238e4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
on: push
jobs:
linux:
runs-on: ubuntu-latest
container: centos:7
steps:
- uses: actions/checkout@v2
- name: Install dependenicies
run: |
yum -y install file gcc gcc-c++ make zlib-devel
- name: Build
run: |
make
strip out-shared/libleveldb.so.1.20
file out-shared/libleveldb.so.1.20
ldd out-shared/libleveldb.so.1.20
- name: Upload
uses: actions/upload-artifact@v2
with:
path: out-shared/libleveldb.so*
name: libleveldb.so
macos:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Build
run: make
- name: Upload
uses: actions/upload-artifact@v2
with:
path: out-shared/libleveldb.dylib*
name: libleveldb.dylib

0 comments on commit 30238e4

Please sign in to comment.