-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
5fbface Merge pull request #60 from sz3/ci-package 9d52131 Draft a github release (with bits!) when a new tag is pushed 2010df7 It's still gcc9 1686eca Build on new ubuntu? 4ab275a a script to build cimbar.js bd87003 Ubuntu 16.04 build for glibc >= 2.23. Or 2.14(!?) 7bb1bc8 -DBUILD_PORTABLE_LINUX for static linking against opencv and libc++ 729eb7e Merge pull request #59 from sz3/bugfix-misc 9e0dae0 Compile time check is fine, I guess c05e3b5 hash difference aside, the binary differences are minor e698786 Update concurrentqueue (1.0.3) fec665f Update fmt (8.1.1) 0f2665a Upgrade intx cc6abee Update picosha2 and stb_image 39b37d9 Update wirehair 82ed9e9 oof 28559cb I think we need calib3d now? 178e02a Make CMakeLists smart enough to find opencv4 b0091d1 new catch2 to make compiler happy 52547ae Include to make g++11 happy 7c545bb cerr c5f7676 Bugfix (maybe): properly clean up old decodes f752be4 Merge pull request #58 from sz3/service-worker 19c7904 No PWA for now ef6df87 Merge pull request #57 from sz3/css-fix 8103bf0 Possibly functional? 74ceae3 add favicon... 8fa1509 Cache more stuff? clear old caches? e20a3cd WIP? cache please? 99eb349 Merge branch 'css-fix' into sw 8d4cbc9 Try using a button element? a7f663a Set zoom on the canvas element, not the whole page? d0dffa2 Slightly more responsive to window size changes 9e8e552 Fix the background css 989796b service worker attempt (doesn't work) git-subtree-dir: app/src/cpp/libcimbar git-subtree-split: 5fbface
- Loading branch information
Showing
35 changed files
with
7,581 additions
and
5,849 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
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,42 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
package-cimbar: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get the code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Get openCV | ||
run: | | ||
wget https://github.com/opencv/opencv/archive/refs/tags/4.5.5.zip | ||
unzip 4.5.5.zip | ||
mv opencv-4.5.5 opencv4 | ||
- name: Run the build process with Docker | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: emscripten/emsdk:latest | ||
options: -v ${{ github.workspace }}:/usr/src/app | ||
shell: bash | ||
run: | | ||
bash /usr/src/app/package-wasm.sh | ||
- name: Show results | ||
run: ls -l web/ | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
files: | | ||
web/cimbar.asmjs.zip | ||
web/cimbar.wasm.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
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,31 @@ | ||
#!/bin/sh | ||
## targeting old glibc | ||
# docker run --mount type=bind,source="$(pwd)",target="/usr/src/app" -it ubuntu:16.04 | ||
|
||
cd /usr/src/app | ||
|
||
# https://gist.github.com/jlblancoc/99521194aba975286c80f93e47966dc5 | ||
apt update | ||
apt install -y software-properties-common | ||
add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
|
||
apt update | ||
apt install -y pkgconf g++-7 python-pip | ||
apt install -y libgles2-mesa-dev libglfw3-dev | ||
|
||
# cmake (via pip) | ||
python -m pip install cmake | ||
|
||
# use gcc7 | ||
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-7 100 | ||
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-7 100 | ||
|
||
cd opencv4/ | ||
mkdir build-portable/ && cd build-portable/ | ||
/usr/local/bin/cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=OFF -DOPENCV_GENERATE_PKGCONFIG=YES -DOPENCV_FORCE_3RDPARTY_BUILD=YES | ||
make -j5 install | ||
|
||
cd /usr/src/app | ||
mkdir build-portable/ && cd build-portable/ | ||
/usr/local/bin/cmake .. -DBUILD_PORTABLE_LINUX=1 | ||
make -j5 install |
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,23 @@ | ||
#!/bin/sh | ||
#docker run --mount type=bind,source="$(pwd)",target="/usr/src/app" -it emscripten/emsdk:latest | ||
|
||
cd /usr/src/app | ||
|
||
apt update | ||
apt install python -y | ||
|
||
cd opencv4/ | ||
mkdir opencv-build-wasm && cd opencv-build-wasm | ||
python ../platforms/js/build_js.py build_wasm --build_wasm --emscripten_dir=/emsdk/upstream/emscripten | ||
|
||
cd /usr/src/app | ||
mkdir build-wasm && cd build-wasm | ||
emcmake cmake .. -DUSE_WASM=1 -DOPENCV_DIR=/usr/src/app/opencv4 | ||
make -j5 install | ||
(cd ../web/ && tar -czvf cimbar.wasm.tar.gz cimbar_js.* index.html main.js) | ||
|
||
cd /usr/src/app | ||
mkdir build-asmjs && cd build-asmjs | ||
emcmake cmake .. -DUSE_WASM=2 -DOPENCV_DIR=/usr/src/app/opencv4 | ||
make -j5 install | ||
(cd ../web/ && zip cimbar.asmjs.zip cimbar_js.js index.html main.js) |
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.