File tree Expand file tree Collapse file tree 2 files changed +60
-5
lines changed Expand file tree Collapse file tree 2 files changed +60
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Build for old ubuntu
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ tags :
8
+ - uuu*
9
+ pull_request :
10
+ types :
11
+ - opened
12
+ - synchronize
13
+
14
+ jobs :
15
+ build :
16
+ name : Build with Ubuntu 20.04 Docker
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
24
+
25
+ - name : Build
26
+ run : |
27
+ git fetch --tags --force # Retrieve annotated tags. #issue 290
28
+ git submodule update --init tinyxml2;
29
+
30
+ docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace -e DEBIAN_FRONTEND=noninteractive -e TZ=UTC ubuntu:20.04 bash -c "
31
+ apt-get update &&
32
+ apt-get --yes --force-yes install libusb-1.0-0-dev libbz2-dev libzstd-dev libtinyxml2-dev
33
+ git config --global --add safe.directory /workspace &&
34
+ cd tinyxml2 && cmake . && make && cd .. &&
35
+ cmake -D 'STATIC=1' -D 'FORCE_OLD=on' . && make"
36
+
37
+ - name : Copy
38
+ run : |
39
+ cp ./uuu/uuu ./uuu/uuu-ubuntu20.04
40
+
41
+ - name : Upload Build Artifacts
42
+ uses : actions/upload-artifact@v4
43
+ with :
44
+ name : uuu-ubuntu-20.04
45
+ path : ./uuu/uuu-ubuntu20.04
46
+
47
+ - name : Create or Update Release
48
+ uses : ncipollo/release-action@v1
49
+ with :
50
+ name : Release ${{ github.ref_name }}
51
+ tag : ${{ github.ref_name }}
52
+ commit : ${{ github.sha }}
53
+ allowUpdates : true
54
+ prerelease : true
55
+ artifacts : " ./uuu/uuu-ubuntu20.04"
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ add_custom_command(
45
45
endif (WIN32 )
46
46
47
47
add_library (
48
- libuuu
48
+ libuuu
49
49
SHARED
50
50
../libuuu/error.cpp
51
51
../libuuu/buffer.cpp
@@ -72,16 +72,16 @@ add_library(
72
72
find_package (PkgConfig REQUIRED)
73
73
pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0)
74
74
pkg_check_modules(tinyxml2 REQUIRED IMPORTED_TARGET tinyxml2)
75
- pkg_check_modules(bzip2 REQUIRED IMPORTED_TARGET bzip2)
75
+ # pkg_check_modules(bzip2 REQUIRED IMPORTED_TARGET bzip2)
76
76
pkg_check_modules(zstd REQUIRED IMPORTED_TARGET libzstd)
77
77
pkg_check_modules(openssl REQUIRED IMPORTED_TARGET openssl)
78
- pkg_check_modules(zlib REQUIRED IMPORTED_TARGET zlib)
78
+ # pkg_check_modules(zlib REQUIRED IMPORTED_TARGET zlib)
79
79
80
80
81
81
if (DARWIN)
82
82
set (CMAKE_C_COMPILER clang)
83
83
set (CMAKE_CXX_COMPILER clang++)
84
- endif (DARWIN)
84
+ endif (DARWIN)
85
85
86
86
if (WIN32 )
87
87
add_definitions (-D_WIN32 -DWIN32 -DDLL_EXPORT_LIBUUU)
@@ -97,4 +97,4 @@ endif(UNIX)
97
97
98
98
99
99
100
- target_link_libraries (libuuu PkgConfig::libusb PkgConfig::tinyxml2 PkgConfig::bzip2 PkgConfig:: zstd PkgConfig::zlib PkgConfig::openssl)
100
+ target_link_libraries (libuuu PkgConfig::libusb PkgConfig::tinyxml2 PkgConfig::zstd PkgConfig::openssl)
You can’t perform that action at this time.
0 commit comments