Skip to content

Commit 8558ad4

Browse files
committed
Synchronize p7zip17 script
1 parent e4d5019 commit 8558ad4

1 file changed

Lines changed: 107 additions & 36 deletions

File tree

Lines changed: 107 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,113 @@
1-
name: macos-p7zip-CI
1+
name: macos
22

3-
on:
4-
push:
5-
branches: [ "To be fixed" ]
6-
pull_request:
7-
branches: [ "To be fixed" ]
3+
on: [push, pull_request]
84

95
jobs:
10-
build:
11-
name: macos-Check
6+
macos:
7+
name: macos-build
128
runs-on: macos-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: build 7za & test
12+
run: |
13+
cp makefile.macosx_gcc_64bits makefile.machine
14+
make 7za
15+
cd ./bin
16+
./7za a ta.7z ../CPP
17+
./7za x ta.7z
18+
echo "compare file"
19+
diff -r ../CPP ./CPP
20+
echo "delete tmp file"
21+
rm -rf ./ta.7z ./CPP
22+
cd ..
23+
24+
- name: build 7zr & test
25+
run: |
26+
make 7zr
27+
cd ./bin
28+
./7zr a tr.7z ../CPP
29+
./7zr x tr.7z
30+
echo "compare file"
31+
diff -r ../CPP ./CPP
32+
echo "delete tmp file"
33+
rm -rf ./tr.7z ./CPP
34+
cd ..
35+
36+
- name: build 7z & test
37+
run: |
38+
make 7z
39+
cd ./bin
40+
./7z a t.7z ../CPP
41+
./7z x t.7z
42+
echo "compare file"
43+
diff -r ../CPP ./CPP
44+
echo "delete tmp file"
45+
rm -rf ./t.7z ./CPP
46+
cd ..
47+
48+
- name: build sfx
49+
run: |
50+
make sfx
51+
52+
- name: check
53+
run: |
54+
cd ./check
55+
bash check.sh `pwd`/../bin/7z
56+
bash check_7za.sh `pwd`/../bin/7za
57+
bash check_7zr.sh `pwd`/../bin/7zr
58+
cd ..
1359
60+
macos-cmake:
61+
name: macos-cmake-build
62+
runs-on: macos-latest
1463
steps:
15-
- uses: actions/checkout@v3
16-
- name: build 7za & check
17-
run: |
18-
mkdir macos-p7zip
19-
mkdir macos-p7zip/bin
20-
mkdir macos-p7zip/lib
21-
export PROJECT_ROOT=`pwd`
22-
cd CPP/7zip/Bundles/Alone
23-
make -f makefile.gcc
24-
INSTALL_PREFIX=$PROJECT_ROOT/macos-p7zip make -f makefile.gcc install
25-
git clone https://github.com/jinfeihan57/p7zip_test_utils.git
26-
cd p7zip_test_utils/check
27-
bash check_7za.sh $PROJECT_ROOT/macos-p7zip/bin/7za
28-
- name: build 7zz & check
29-
run: |
30-
export PROJECT_ROOT=`pwd`
31-
cd CPP/7zip/Bundles/Alone2
32-
make -f makefile.gcc
33-
INSTALL_PREFIX=$PROJECT_ROOT/macos-p7zip make -f makefile.gcc install
34-
git clone https://github.com/jinfeihan57/p7zip_test_utils.git
35-
cd p7zip_test_utils/check
36-
bash check.sh $PROJECT_ROOT/macos-p7zip/bin/7zz
37-
- name: build 7z.so
38-
run: |
39-
export PROJECT_ROOT=`pwd`
40-
cd CPP/7zip/Bundles/Format7zF
41-
make -f makefile.gcc
42-
INSTALL_PREFIX=$PROJECT_ROOT/macos-p7zip make -f makefile.gcc install
64+
- uses: actions/checkout@v1
65+
- name: cmake build 7z_ & test
66+
run: |
67+
cd ./CPP/7zip/CMAKE/
68+
rm -rf ./build
69+
mkdir build
70+
cd build
71+
cmake ..
72+
make 7z_
73+
make 7z
74+
make Rar
75+
make 7zCon.sfx
76+
cd ./bin
77+
./7z_ a t_.7z ../../../Archive
78+
./7z_ x t_.7z
79+
echo "compare file"
80+
diff -r ../../../Archive ./Archive
81+
echo "delte tmp file"
82+
rm -rf t_.7z Archive
83+
84+
- name: cmake build 7za & test
85+
run: |
86+
cd ./CPP/7zip/CMAKE/build/
87+
make 7za
88+
cd ./bin
89+
./7za a ta.7z ../../../Archive
90+
./7za x ta.7z
91+
echo "compare file"
92+
diff -r ../../../Archive ./Archive
93+
echo "delete tmp file"
94+
rm -rf ta.7z Archive
95+
96+
- name: cmake build 7zr & test
97+
run: |
98+
cd ./CPP/7zip/CMAKE/build/
99+
make 7zr
100+
cd ./bin
101+
./7zr a tr.7z ../../../Archive
102+
./7zr x tr.7z
103+
echo "compare file"
104+
diff -r ../../../Archive ./Archive
105+
echo "delete tmp file"
106+
rm -rf tr.7z Archive
107+
108+
- name: check
109+
run: |
110+
cd ./check
111+
bash ./check.sh `pwd`/../CPP/7zip/CMAKE/build/bin/7z_
112+
bash ./check_7za.sh `pwd`/../CPP/7zip/CMAKE/build/bin/7za
113+
bash ./check_7zr.sh `pwd`/../CPP/7zip/CMAKE/build/bin/7zr

0 commit comments

Comments
 (0)