Skip to content

Commit d4e0e9e

Browse files
committed
try fixed CI for link lzma;
1 parent 944c394 commit d4e0e9e

File tree

1 file changed

+14
-103
lines changed

1 file changed

+14
-103
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -9,126 +9,37 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: makeInit
12-
run: |
13-
make LDEF=0 LZMA=0 ZSTD=0 MD5=0 -j
14-
make LDEF=0 LZMA=0 ZSTD=0 MD5=0 clean
15-
- name: makeNoAll
1612
run: |
1713
git clone --depth=1 https://github.com/sisong/libmd5.git ../libmd5
1814
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
1915
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
20-
make DIR_DIFF=0 MT=0 BSD=0 VCD=0 ZLIB=0 LDEF=0 BZIP2=0 -j
21-
make DIR_DIFF=0 MT=0 BSD=0 VCD=0 ZLIB=0 LDEF=0 BZIP2=0 clean
16+
git clone --depth=1 https://github.com/sisong/zlib.git ../zlib
17+
git clone --depth=1 https://github.com/sisong/libdeflate.git ../libdeflate
2218
- name: makeNoldef
2319
run: |
2420
make LDEF=0 -j
2521
make LDEF=0 clean
26-
- name: makeAll
27-
run: |
28-
git clone --depth=1 https://github.com/sisong/zlib.git ../zlib
29-
git clone --depth=1 https://github.com/sisong/libdeflate.git ../libdeflate
30-
make -j
31-
make clean
32-
- name: makeByBz2Code
33-
run: |
34-
git clone --depth=1 https://github.com/sisong/bzip2.git ../bzip2
35-
make BZIP2=1 -j
36-
37-
clang-build:
38-
runs-on: ubuntu-latest
39-
steps:
40-
- uses: actions/checkout@v2
41-
- name: installClang
42-
run: |
43-
sudo apt-get install -y llvm clang
44-
- name: initAndClone
45-
run: |
46-
git clone --depth=1 https://github.com/sisong/libmd5.git ../libmd5
47-
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
48-
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
49-
git clone --depth=1 https://github.com/sisong/zlib.git ../zlib
50-
git clone --depth=1 https://github.com/sisong/libdeflate.git ../libdeflate
51-
- name: makeByClang
52-
run: |
53-
make CL=1 -j
5422
55-
xcode-build:
56-
runs-on: macos-latest
23+
make-build2:
24+
strategy:
25+
matrix:
26+
platform: [ubuntu-latest, macos-latest]
27+
runs-on: ${{ matrix.platform }}
5728
steps:
5829
- uses: actions/checkout@v2
59-
- name: initAndClone
30+
- name: makeInit
6031
run: |
6132
git clone --depth=1 https://github.com/sisong/libmd5.git ../libmd5
6233
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
6334
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
6435
git clone --depth=1 https://github.com/sisong/zlib.git ../zlib
6536
git clone --depth=1 https://github.com/sisong/libdeflate.git ../libdeflate
66-
- name: buildByXcode
67-
run: |
68-
xcodebuild -workspace builds/xcode/HDiffPatch.xcworkspace -scheme hdiffz -configuration Release OBJROOT=$PWD/bin SYMROOT=$PWD/bin
69-
xcodebuild -workspace builds/xcode/HDiffPatch.xcworkspace -scheme hpatchz -configuration Release OBJROOT=$PWD/bin SYMROOT=$PWD/bin
70-
xcodebuild -workspace builds/xcode/HDiffPatch.xcworkspace -scheme unitTest -configuration Release OBJROOT=$PWD/bin SYMROOT=$PWD/bin
71-
72-
macos-ndk-build:
73-
runs-on: macos-latest
74-
steps:
75-
- uses: actions/checkout@v2
76-
- uses: nttld/[email protected]
77-
with:
78-
ndk-version: r23c
79-
- name: buildByAndroidNDK
80-
run: |
81-
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
82-
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
83-
cd ./builds/android_ndk_jni_mk
84-
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=./Application.mk APP_PLATFORM=android-16 APP_ABI=all
85-
86-
windows-ndk-build:
87-
runs-on: windows-latest
88-
steps:
89-
- uses: actions/checkout@v2
90-
- uses: nttld/[email protected]
91-
with:
92-
ndk-version: r16b
93-
- name: buildByAndroidNDK
94-
run: |
95-
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
96-
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
97-
git clone --depth=1 https://github.com/sisong/bzip2.git ../bzip2
98-
cd ./builds/android_ndk_jni_mk
99-
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=./Application.mk BSD=1 BZIP2=1
100-
101-
ubuntu-ndk-build:
102-
runs-on: ubuntu-latest
103-
steps:
104-
- uses: actions/checkout@v2
105-
- uses: nttld/[email protected]
106-
with:
107-
ndk-version: r16b
108-
- name: buildByAndroidNDK
37+
- name: makeAll
10938
run: |
110-
sudo apt install libncurses5
111-
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
112-
git clone --depth=1 https://github.com/sisong/bzip2.git ../bzip2
113-
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
114-
cd ./builds/android_ndk_jni_mk
115-
ndk-build NDK_PROJECT_PATH=. NDK_APPLICATION_MK=./Application.mk BSD=1 BZIP2=1 VCD=1
116-
117-
vc-build:
118-
runs-on: windows-latest
119-
steps:
120-
- uses: actions/checkout@v2
121-
- uses: microsoft/[email protected]
122-
with:
123-
msbuild-architecture: x64
124-
- name: initAndClone
39+
make -j
40+
make clean
41+
- name: makeByBz2Code
12542
run: |
126-
git clone --depth=1 https://github.com/sisong/libmd5.git ../libmd5
127-
git clone --depth=1 https://github.com/sisong/lzma.git ../lzma
128-
git clone --depth=1 https://github.com/sisong/zstd.git ../zstd
12943
git clone --depth=1 https://github.com/sisong/bzip2.git ../bzip2
130-
git clone --depth=1 https://github.com/sisong/zlib.git ../zlib
131-
git clone --depth=1 https://github.com/sisong/libdeflate.git ../libdeflate
132-
- name: buildByVC
133-
run: |
134-
msbuild builds/vc/HDiffPatch.sln -t:rebuild -verbosity:diag -property:Configuration=Release
44+
make BZIP2=1 -j
45+
make BZIP2=1 clean

0 commit comments

Comments
 (0)