This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also build a linux image for testing
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM fedora:32 | ||
MAINTAINER Matthias Kuhn <[email protected]> | ||
ARG QGIS_URL | ||
|
||
RUN dnf -y install \ | ||
unzip \ | ||
qt5-devel \ | ||
clang \ | ||
ninja-build \ | ||
flex \ | ||
bison \ | ||
geos-devel \ | ||
gdal-devel \ | ||
libzip-devel \ | ||
sqlite-devel \ | ||
protobuf-devel \ | ||
qca-qt5-devel \ | ||
proj-devel \ | ||
gsl-devel \ | ||
python3-pyqt5-sip \ | ||
python3-qt5-devel \ | ||
python3-qscintilla-qt5 \ | ||
exiv2-devel \ | ||
qwt-qt5-devel \ | ||
qtkeychain-qt5-devel \ | ||
qscintilla-qt5-devel \ | ||
spatialindex-devel \ | ||
libspatialite-devel \ | ||
protobuf-lite-devel \ | ||
libpq-devel | ||
|
||
|
||
RUN curl -LJ -o QGIS.tar.gz $QGIS_URL && \ | ||
tar xzf QGIS.tar.gz && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -GNinja ../QGIS-* && \ | ||
ninja install && \ | ||
cd .. && \ | ||
rm -rf build && \ | ||
rm -rf ../QGIS-* && \ | ||
rm ../QGIS.tar.gz | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build QGIS | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Extract branch or tag name | ||
id: extract_ref | ||
run: echo ::set-output name=ref::${GITHUB_REF#refs/*/} | ||
|
||
- name: Extract QGIS url | ||
id: extract_qgis | ||
run: | | ||
export $(grep URL_qgis= recipes/qgis/recipe.sh) | ||
echo ::set-output name=url::$URL_qgis | ||
- name: Build | ||
run: | | ||
docker build --build-arg QGIS_URL=${{ steps.extract_qgis.outputs.url }} -t opengisch/qfield-test-docker:${{ steps.extract_ref.outputs.ref }} .docker/qgis-linux | ||
- name: Deploy to dockerhub | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
run: | | ||
echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | ||
docker push opengisch/qfield-test-docker:${{ steps.extract_ref.outputs.ref }} |