-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from sz3/next-release
v0.5.10 release
- Loading branch information
Showing
38 changed files
with
7,576 additions
and
5,854 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
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
1 change: 1 addition & 0 deletions
1
app/src/cpp/libcimbar/src/third_party_lib/concurrentqueue/LICENSE.md
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.