Skip to content

Commit

Permalink
Merged modified linux build into main build script
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Feb 16, 2021
1 parent 8aaaa86 commit 3001627
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 51 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,48 @@ jobs:
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
yum -y install file gcc gcc-c++ make unzip
- name: Install CMake
uses: lukka/get-cmake@latest

- name: Checkout zlib
uses: actions/checkout@v2
with:
repository: madler/zlib
path: zlib

- name: Build zlib
run: |
make
strip out-shared/libleveldb.so.1.20
file out-shared/libleveldb.so.1.20
ldd out-shared/libleveldb.so.1.20
cd zlib
cmake -GNinja -DCMAKE_POSITION_INDEPENDENT_CODE=ON
cmake --build . --config Release
cd ..
- name: Checkout leveldb
uses: actions/checkout@v2
with:
path: leveldb-mcpe

- name: Build leveldb
run: |
cmake -DZLIB_INCLUDE_DIR="zlib" -DZLIB_LIBRARY="/__w/leveldb-mcpe/leveldb-mcpe/zlib/libz.a" -GNinja leveldb-mcpe
cmake --build . --config Release
strip libleveldb.so
file libleveldb.so
ldd libleveldb.so
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: out-shared/libleveldb.so
asset_path: libleveldb.so
asset_name: libleveldb.so
asset_content_type: so

macos:
runs-on: macos-10.15
steps:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/build2.yml

This file was deleted.

0 comments on commit 3001627

Please sign in to comment.