Skip to content

Commit

Permalink
Try to fix CI (1)
Browse files Browse the repository at this point in the history
Try to fix CI (2)

Remove questionable choice of condition from clatexmath build files in
attempt to fix CI

Typo fix

Trying to fix automated gcc7.5.0 build of clatexmath, again

Typo fix, again

Yet another typo fix

Fix CI and bump deb package version.

Fix CI and bump deb package version.

Try to fix CI (2)

Remove questionable choice of condition from clatexmath build files in
attempt to fix CI

Typo fix

Trying to fix automated gcc7.5.0 build of clatexmath, again

Typo fix, again

Yet another typo fix

Bump deb package version.
  • Loading branch information
blackhole89 committed Nov 23, 2021
1 parent df9a4eb commit f194cdf
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
with:
path: ~/cLaTeXMath/
key: ${{ runner.os }}-clatexmath
- name: Updating apt package lists
run: sudo apt-get update
- name: Downloading dependencies 📥
run: sudo apt-get install build-essential libfontconfig1-dev zlib1g-dev libjsoncpp-dev libgtksourceviewmm-3.0-dev libgtkmm-3.0-dev libtinyxml2-dev python3 python3-pip python3-setuptools
- name: Download the latest version of Meson 🧰
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: updating apt package archives
run: sudo apt-get update
- name: setting the dependencies up
run: sudo apt install libfontconfig1-dev zlib1g-dev libjsoncpp-dev libgtksourceviewmm-3.0-dev libtinyxml2-dev libgtkmm-3.0-dev cmake ninja-build
- name: installing cLaTeXMath
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
automatic_release_tag: "latest-deb"
prerelease: true
title: "Ubuntu 18.04 package for development version"
files: ../notekit_0.1-1_amd64.deb
files: ../notekit_0.2_amd64.deb

8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
notekit (0.2) unstable; urgency=medium

* Various bugfixes.
* Add support for inline images and image pasting.
* Misc improvements.

-- Matvey Soloviev <[email protected]> Tue, 23 Nov 2021 16:20:00 -0500

notekit (0.1-1) unstable; urgency=medium

* Initial release
Expand Down
36 changes: 35 additions & 1 deletion install-clatexmath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,40 @@
git clone https://github.com/NanoMichael/cLaTeXMath.git
cd cLaTeXMath
git reset --hard HEAD
# patch out C++17 feature use in code, but compile with -std=c++17
(cat <<EOF
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9654360..a070437 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,10 +25,6 @@ else ()
# needs extra lib to use std::filesystem
target_link_libraries(LaTeX PUBLIC "stdc++fs")
endif ()
- if ("\${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS 8)
- # dose not have full c++17 features
- set(COMPILER_SUPPORTS_CXX17 OFF)
- endif ()
endif ()
if (COMPILER_SUPPORTS_CXX17)
diff --git a/src/config.h b/src/config.h
index b43a395..d8aabe5 100644
--- a/src/config.h
+++ b/src/config.h
@@ -40,10 +40,6 @@
#include "vcruntime.h"
#endif
-#if (__cplusplus >= 201703L) || (defined(_MSC_VER) && defined(_HAS_CXX17) && _HAS_CXX17)
-#define CLATEX_CXX17 1
-#else
#define CLATEX_CXX17 0
-#endif
#endif // CONFIG_H_INCLUDED
EOF
) | patch -p1
cmake -DCMAKE_BUILD_TYPE=Release -DHAVE_LOG=OFF -DGRAPHICS_DEBUG=OFF .
make
cp -r res ../data/latex
cp -r res ../data/latex

0 comments on commit f194cdf

Please sign in to comment.