Compare commits
2
Commits
v1.0.4
...
da8a4903a7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da8a4903a7 | ||
|
|
6f670860a9 |
No files matched your search
@@ -24,8 +24,12 @@ FetchContent_MakeAvailable(httplib)
|
|||||||
|
|
||||||
set(CMAKE_BUILD_TYPE Release)
|
set(CMAKE_BUILD_TYPE Release)
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
|
target_compile_options(fasttext-static PRIVATE
|
||||||
|
-march=x86-64 -mno-avx512f)
|
||||||
|
|
||||||
add_executable(fasttext_lid_server main.cpp)
|
add_executable(fasttext_lid_server main.cpp)
|
||||||
|
target_compile_options(fasttext_lid_server PRIVATE
|
||||||
|
-march=x86-64 -mno-avx512f)
|
||||||
target_include_directories(fasttext_lid_server PRIVATE ${fasttext_SOURCE_DIR}/src)
|
target_include_directories(fasttext_lid_server PRIVATE ${fasttext_SOURCE_DIR}/src)
|
||||||
|
|
||||||
target_link_libraries(fasttext_lid_server
|
target_link_libraries(fasttext_lid_server
|
||||||
|
|||||||
+3
-9
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
version=1.0.4
|
version=1.0.5
|
||||||
image_name="suspiciousactivity/fasttext-lid-server"
|
image_name="suspiciousactivity/fasttext-lid-server"
|
||||||
|
|
||||||
# Check git status
|
# Check git status
|
||||||
@@ -19,18 +19,12 @@ fi
|
|||||||
docker build --platform linux/amd64 -t ${image_name}:${version}-amd64 .
|
docker build --platform linux/amd64 -t ${image_name}:${version}-amd64 .
|
||||||
docker push ${image_name}:${version}-amd64
|
docker push ${image_name}:${version}-amd64
|
||||||
|
|
||||||
# Build ARM64
|
|
||||||
docker build --platform linux/arm64 -t ${image_name}:${version}-arm64 .
|
|
||||||
docker push ${image_name}:${version}-arm64
|
|
||||||
|
|
||||||
# Create and push manifest
|
# Create and push manifest
|
||||||
docker manifest create ${image_name}:${version} \
|
docker manifest create ${image_name}:${version} \
|
||||||
${image_name}:${version}-amd64 \
|
${image_name}:${version}-amd64
|
||||||
${image_name}:${version}-arm64
|
|
||||||
|
|
||||||
docker manifest create ${image_name}:latest \
|
docker manifest create ${image_name}:latest \
|
||||||
${image_name}:${version}-amd64 \
|
${image_name}:${version}-amd64
|
||||||
${image_name}:${version}-arm64
|
|
||||||
|
|
||||||
docker manifest push ${image_name}:${version}
|
docker manifest push ${image_name}:${version}
|
||||||
docker manifest push ${image_name}:latest
|
docker manifest push ${image_name}:latest
|
||||||
|
|||||||
Reference in new issue
Block a user