Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break out ipfs_client #131

Draft
wants to merge 2 commits into
base: mai
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
36 changes: 23 additions & 13 deletions .github/doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@ source "${here}/ubuntu-deps.env"
sudo apt install doxygen

echo Configure
mkdir -p build
cmake \
-G Ninja \
-S ipfs_chromium \
-B build \
-D USE_DOXYGEN=TRUE \
-D CMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug --target doc
find ./ -iname index.html
ls -lrth build/
ls -lrth build/doc/
ls -lrth build/doc/html
mv -v ipfs_chromium/.git .
mkdir -p build
set -x
find build/ -iname '*.cmake'
find ./ -iname '*proto*'
find build/ -iname '*proto*'
if cmake \
-G Ninja \
-S ipfs_chromium \
-B build \
-D USE_DOXYGEN=TRUE \
-D CMAKE_BUILD_TYPE=Debug
then
cmake --build build --config Debug --target doc
find ./ -iname index.html
ls -lrth build/
ls -lrth build/doc/
ls -lrth build/doc/html
mv -v ipfs_chromium/.git .
else
find build/ -iname '*.cmake'
find ./ -iname '*proto*'
find build/ -iname '*proto*'
fi
27 changes: 27 additions & 0 deletions .github/lib.config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash -ex
mkdir build
mkdir ipfs-client-dev
if which ${{ matrix.config.cc }}
then
CC=`which ${{ matrix.config.cc }}`
export CC
fi
if which ${{ matrix.config.cxx }}
then
CXX=`which ${{ matrix.config.cxx }}`
export CXX
fi
if cmake \
-G "${{ matrix.config.generators }}" \
-S . \
-B build \
-D CMAKE_INSTALL_PREFIX=`pwd`/ipfs-client-dev \
-D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-D USE_DOXYGEN=OFF \
-D CXX_VERSION=20
then
echo "Configured."
else
find build/ -iname '*proto*'
fi

2 changes: 2 additions & 0 deletions .github/tour.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -ex
echo "TODO ${0}"
exit
echo Clone tester repo.
git clone https://github.com/John-LittleBearLabs/ipfs_client_clitester.git
for e in "${GITHUB_HEAD_REF-}" "${GITHUB_REF-}"
Expand Down
7 changes: 7 additions & 0 deletions .github/ubuntu-deps.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ pipx ensurepath
pipx install conan
npm install -g @marp-team/marp-cli

if ! conan profile show -pr:a default
then
conan profile detect
sed -i 's,cppstd=.*17,cppstd=20,' ~/.conan2/profiles/default
conan profile show -pr:a default
fi

set +x
echo Show versions:
for p in g++ gcc clang{++,} lcov conan
Expand Down
3 changes: 2 additions & 1 deletion .github/ut.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -ex

echo "TODO ${0}"
exit
here="$(dirname "${0}")"
export here
source "${here}/ubuntu-deps.env"
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,26 +133,8 @@ jobs:
- name: Configure
shell: bash
run: |
mkdir build
mkdir ipfs-client-dev
if which ${{ matrix.config.cc }}
then
CC=`which ${{ matrix.config.cc }}`
export CC
fi
if which ${{ matrix.config.cxx }}
then
CXX=`which ${{ matrix.config.cxx }}`
export CXX
fi
cmake \
-G "${{ matrix.config.generators }}" \
-S . \
-B build \
-D CMAKE_INSTALL_PREFIX=`pwd`/ipfs-client-dev \
-D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-D USE_DOXYGEN=OFF \
-D CXX_VERSION=20
find ./ -name lib.config.sh
./ipfs_chromium/.github/lib.config.sh
- name: Build
shell: bash
run: cmake --build build --config ${{ matrix.config.build_type }} --target package
Expand Down
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/chromium-ipfs.iml

This file was deleted.

37 changes: 0 additions & 37 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/file.template.settings.xml

This file was deleted.

Empty file.
8 changes: 0 additions & 8 deletions .idea/fileTemplates/internal/C Header File.h

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/fileTemplates/internal/C++ Class Header.h

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/fileTemplates/internal/C++ Class.cc

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/ipfs-chromium.iml

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

File renamed without changes.
Loading
Loading