Skip to content

Commit

Permalink
Upgrade CI to Geos 3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal0 committed Feb 4, 2021
1 parent f4a4855 commit c082810
Show file tree
Hide file tree
Showing 62 changed files with 8,700 additions and 8,515 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
os: [ubuntu, macos, windows]
boost: ['1_66', '1_75']
geos: ['3.8.1', 'none']
geos: ['3.9.0', 'none']
compiler: ['g++', 'g++-8', 'clang++']
exclude:
- os: macos
Expand All @@ -36,7 +36,7 @@ jobs:
- os: ubuntu
boost: 1_66
compiler: g++-8
geos: '3.8.1'
geos: '3.9.0'
code_coverage: "--enable-code-coverage"
- os: windows
shell: |
Expand All @@ -60,7 +60,7 @@ jobs:
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gtkmm git base-devel bash mingw-w64-x86_64-gcc mingw-w64-x86_64-boost mingw-w64-x86_64-cairo
install: mingw-w64-x86_64-gtkmm git base-devel bash mingw-w64-x86_64-gcc mingw-w64-x86_64-boost mingw-w64-x86_64-cairo mingw-w64-x86_64-cmake
- name: Checkout pcb2gcode source
uses: actions/checkout@v2
- name: Setup paths and env
Expand Down Expand Up @@ -163,16 +163,16 @@ jobs:
if [ ! -d "${LOCAL_INSTALL_PATH}/include/geos" ]; then
echo "UPDATE_CACHE=true" >> $GITHUB_ENV
pushd ~
for i in {1..5}; do
wget -q -T20 -t1 -O "geos-${GEOS}.tar.bz2" "http://download.osgeo.org/geos/geos-${GEOS}.tar.bz2" && break;
done
tar xjf "geos-${GEOS}.tar.bz2"
pushd geos-${GEOS}
./configure --prefix=${LOCAL_INSTALL_PATH}
git clone --depth 1 --branch ${GEOS} https://github.com/libgeos/geos.git
pushd geos
mkdir build
pushd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_INSTALL_PREFIX=${LOCAL_INSTALL_PATH}
make -j ${NUM_CPUS}
make install
popd
popd
popd
fi
- name: coverage specific setup
if: matrix.code_coverage
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:
SKIP_GERBERIMPORTER_TESTS_PNG: 1
run: make -j ${NUM_CPUS} check-valgrind
- name: Run integration tests
if: matrix.boost == '1_66' && matrix.geos == '3.8.1'
if: matrix.boost == '1_66' && matrix.geos == '3.9.0'
run: |
sudo apt-get install python3-setuptools
pip3 install --user wheel colour_runner unittest2 termcolor concurrencytest in_place
Expand All @@ -318,8 +318,8 @@ jobs:
if [[ -e ${LOCAL_INSTALL_PATH}/lib/libgerbv.so.1 ]]; then
cp -L ${LOCAL_INSTALL_PATH}/lib/libgerbv.so.1 pcb2gcode-$(./pcb2gcode --version | head -1)/.libs;
fi
if [[ -e ${LOCAL_INSTALL_PATH}/lib/libgeos-3.8.1.so ]]; then
cp -L ${LOCAL_INSTALL_PATH}/lib/libgeos-3.8.1.so pcb2gcode-$(./pcb2gcode --version | head -1)/.libs;
if [[ -e ${LOCAL_INSTALL_PATH}/lib/libgeos-3.9.0.so ]]; then
cp -L ${LOCAL_INSTALL_PATH}/lib/libgeos-3.9.0.so pcb2gcode-$(./pcb2gcode --version | head -1)/.libs;
fi
cat > pcb2gcode-$(./pcb2gcode --version | head -1)/pcb2gcode.sh << EOF
Expand Down Expand Up @@ -348,7 +348,7 @@ jobs:
cp ../../.libs/pcb2gcode.exe .
cp ../../../.local/bin/libgerbv-1.dll .
if [[ ${GEOS} != 'none' ]]; then
cp ../../../.local/bin/libgeos-$( echo ${GEOS} | tr . - ).dll .
cp ../../../.local/bin/libgeos.dll .
fi
cp /mingw64/bin/libboost_program_options-mt.dll .
cp /mingw64/bin/libbrotlicommon.dll .
Expand Down Expand Up @@ -440,15 +440,15 @@ jobs:
run: |
mkdir -p pcb2gcode-{windows,ubuntu,macos}
mv pcb2gcode-windows_1_75_gplusplus_3.8.1/pcb2gcode-windows_1_75_gplusplus_3.8.1.tar pcb2gcode-windows/pcb2gcode-windows-${PCB2GCODE_VERSION}.tar
mv pcb2gcode-windows_1_75_gplusplus_3.9.0/pcb2gcode-windows_1_75_gplusplus_3.9.0.tar pcb2gcode-windows/pcb2gcode-windows-${PCB2GCODE_VERSION}.tar
pushd pcb2gcode-windows
tar xvf pcb2gcode-windows-${PCB2GCODE_VERSION}.tar
zip -r pcb2gcode-windows-${PCB2GCODE_VERSION}.zip pcb2gcode-${PCB2GCODE_VERSION}
popd
mv pcb2gcode-ubuntu_1_66_gplusplus_3.8.1/pcb2gcode-ubuntu_1_66_gplusplus_3.8.1.tar.gz pcb2gcode-ubuntu/pcb2gcode-ubuntu-${PCB2GCODE_VERSION}.tar.gz
mv pcb2gcode-ubuntu_1_66_gplusplus_3.9.0/pcb2gcode-ubuntu_1_66_gplusplus_3.9.0.tar.gz pcb2gcode-ubuntu/pcb2gcode-ubuntu-${PCB2GCODE_VERSION}.tar.gz
mv pcb2gcode-macos_1_75_gplusplus_3.8.1/pcb2gcode-macos_1_75_gplusplus_3.8.1.tar.gz pcb2gcode-macos/pcb2gcode-macos-${PCB2GCODE_VERSION}.tar.gz
mv pcb2gcode-macos_1_75_gplusplus_3.9.0/pcb2gcode-macos_1_75_gplusplus_3.9.0.tar.gz pcb2gcode-macos/pcb2gcode-macos-${PCB2GCODE_VERSION}.tar.gz
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PKG_CHECK_MODULES([gdkmm], [gdkmm-2.4 >= 2.8])
PKG_CHECK_MODULES([gerbv], [libgerbv >= 2.1.0])
PKG_CHECK_MODULES([rsvg], [librsvg-2.0 >= 2.0])

# Optional GEOS, as a slower but more reliable replacement for Boost geometry.
# Optional GEOS, as a faster and more reliable replacement for Boost geometry.
GEOS_INIT([3.8.1])
AS_IF([test "x$HAVE_GEOS" = "xyes"],
[AC_MSG_NOTICE([Found geos, we'll use it instead of some of the boost geometry for greater accuracy and speed.])],
Expand Down

0 comments on commit c082810

Please sign in to comment.