forked from GitHub/gf-core
Remove RGL and HTML from Debian build
This commit is contained in:
27
.github/workflows/build-debian-package.yml
vendored
27
.github/workflows/build-debian-package.yml
vendored
@@ -1,20 +1,21 @@
|
|||||||
name: Build Debian Package
|
name: Build Debian Package
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build on ${{ matrix.os }}
|
name: Build on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04]
|
os: [ubuntu-18.04]
|
||||||
env:
|
env:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install build tools
|
- name: Install build tools
|
||||||
run: |
|
run: |
|
||||||
@@ -27,23 +28,15 @@ jobs:
|
|||||||
libghc-json-dev \
|
libghc-json-dev \
|
||||||
python-dev \
|
python-dev \
|
||||||
default-jdk \
|
default-jdk \
|
||||||
libtool-bin \
|
libtool-bin
|
||||||
txt2tags \
|
|
||||||
pandoc
|
|
||||||
|
|
||||||
- name: Checkout RGL
|
|
||||||
run: |
|
|
||||||
git clone --depth 1 https://github.com/GrammaticalFramework/gf-rgl.git ../gf-rgl
|
|
||||||
|
|
||||||
- name: Build Debian package
|
- name: Build Debian package
|
||||||
run: |
|
run: |
|
||||||
make deb
|
make deb
|
||||||
|
|
||||||
- name: Copy packages
|
- name: Upload artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v2
|
||||||
mkdir debian/dist
|
|
||||||
cp ../gf_*.deb debian/dist/
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
with:
|
||||||
path: debian/dist
|
name: Debian package
|
||||||
|
path: ../gf_*.deb
|
||||||
|
if-no-files-found: error
|
||||||
|
|||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -5,6 +5,12 @@
|
|||||||
*.jar
|
*.jar
|
||||||
*.gfo
|
*.gfo
|
||||||
*.pgf
|
*.pgf
|
||||||
|
debian/.debhelper
|
||||||
|
debian/debhelper-build-stamp
|
||||||
|
debian/gf
|
||||||
|
debian/gf.debhelper.log
|
||||||
|
debian/gf.substvars
|
||||||
|
debian/files
|
||||||
dist/
|
dist/
|
||||||
dist-newstyle/
|
dist-newstyle/
|
||||||
src/runtime/c/.libs/
|
src/runtime/c/.libs/
|
||||||
|
|||||||
10
debian/rules
vendored
10
debian/rules
vendored
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
%:
|
%:
|
||||||
+dh $@
|
+dh $@
|
||||||
|
|
||||||
#dh_shlibdeps has a problem finding which package some of the Haskell
|
#dh_shlibdeps has a problem finding which package some of the Haskell
|
||||||
@@ -26,14 +26,10 @@ override_dh_auto_build:
|
|||||||
cd src/runtime/python && EXTRA_INCLUDE_DIRS=$(CURDIR)/src/runtime/c EXTRA_LIB_DIRS=$(CURDIR)/src/runtime/c/.libs python setup.py build
|
cd src/runtime/python && EXTRA_INCLUDE_DIRS=$(CURDIR)/src/runtime/c EXTRA_LIB_DIRS=$(CURDIR)/src/runtime/c/.libs python setup.py build
|
||||||
cd src/runtime/java && make CFLAGS="-I$(CURDIR)/src/runtime/c -L$(CURDIR)/src/runtime/c/.libs" INSTALL_PATH=/usr
|
cd src/runtime/java && make CFLAGS="-I$(CURDIR)/src/runtime/c -L$(CURDIR)/src/runtime/c/.libs" INSTALL_PATH=/usr
|
||||||
echo $(SET_LDL)
|
echo $(SET_LDL)
|
||||||
-$(SET_LDL) cabal build # builds gf, fails to build example grammars
|
-$(SET_LDL) cabal build
|
||||||
export $(SET_LDL); PATH=$(CURDIR)/dist/build/gf:$$PATH && make -C ../gf-rgl build
|
|
||||||
GF_LIB_PATH=$(CURDIR)/../gf-rgl/dist $(SET_LDL) cabal build # have RGL now, ok to build example grammars
|
|
||||||
make html
|
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
$(SET_LDL) cabal copy --destdir=$(CURDIR)/debian/gf # creates www directory
|
$(SET_LDL) cabal copy --destdir=$(CURDIR)/debian/gf
|
||||||
export GF_LIB_PATH="$$(dirname $$(find "$(CURDIR)/debian/gf" -name www))/lib" && echo "GF_LIB_PATH=$$GF_LIB_PATH" && mkdir -p "$$GF_LIB_PATH" && make -C ../gf-rgl copy
|
|
||||||
cd src/runtime/c && bash setup.sh copy prefix=$(CURDIR)/debian/gf/usr
|
cd src/runtime/c && bash setup.sh copy prefix=$(CURDIR)/debian/gf/usr
|
||||||
cd src/runtime/python && python setup.py install --prefix=$(CURDIR)/debian/gf/usr
|
cd src/runtime/python && python setup.py install --prefix=$(CURDIR)/debian/gf/usr
|
||||||
cd src/runtime/java && make INSTALL_PATH=$(CURDIR)/debian/gf/usr install
|
cd src/runtime/java && make INSTALL_PATH=$(CURDIR)/debian/gf/usr install
|
||||||
|
|||||||
Reference in New Issue
Block a user