Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
add workflow to create geo libs as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
elinork committed Mar 17, 2024
1 parent 133024f commit c4c8ec8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-as-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Create artifacts of vendored geo dependencies

on:
workflow_dispatch

permissions:
contents: write

jobs:
download_and_vendor_dependencies:
runs-on: ubuntu-latest
name: Compile and vendor Geo dependencies for cloud.gov

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Install geo libraries
run: |
apt-get -y update
apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev
- name: Run lib_tar.sh to extract each of the libraries needed
run: |
if [ -d "lib" ]; then rm -fr lib; fi
mkdir lib
chmod +x scripts/lib_tar.sh
for L in $LIBS
do
find / -iname $L 2>/dev/null | xargs -I {} scripts/lib_tar.sh {}
done
scripts/lib_tar.sh /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 # Another libsqlite3.so.0 exists on the image
env:
LIBS: libudunits2.so.0 libgeos_c.so libproj.so.22 proj.db libgdal.so.30 libarmadillo.so.10

- name: Upload to artifacts
uses: actions/upload-artifact@v4
with:
name: Geo-libs
path: lib

0 comments on commit c4c8ec8

Please sign in to comment.