-
Notifications
You must be signed in to change notification settings - Fork 111
112 lines (102 loc) · 2.9 KB
/
linux- build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: linux
on: [push, pull_request]
jobs:
ubuntu:
name: ubuntu-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: build 7za & test
run: |
make 7za
cd ./bin
./7za a ta.7z ../CPP
./7za x ta.7z
echo "compare file"
diff -r ../CPP ./CPP
echo "delete tmp file"
rm -rf ./ta.7z ./CPP
cd ..
- name: build 7zr & test
run: |
make 7zr
cd ./bin
./7zr a tr.7z ../CPP
./7zr x tr.7z
echo "compare file"
diff -r ../CPP ./CPP
echo "delete tmp file"
rm -rf ./tr.7z ./CPP
cd ..
- name: build 7z & test
run: |
make 7z
cd ./bin
./7z a t.7z ../CPP
./7z x t.7z
echo "compare file"
diff -r ../CPP ./CPP
echo "delete tmp file"
rm -rf ./t.7z ./CPP
cd ..
- name: build sfx
run: |
make sfx
- name: check
run: |
cd ./check
bash check.sh `pwd`/../bin/7z
bash check_7za.sh `pwd`/../bin/7za
bash check_7zr.sh `pwd`/../bin/7zr
cd ..
ubuntu-cmake:
name: ubuntu-cmake-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: cmake build 7z_ & test
run: |
cd ./CPP/7zip/CMAKE/
rm -rf ./build
mkdir build
cd build
cmake ..
make 7z_
make 7z
make Rar
make 7zCon.sfx
cd ./bin
./7z_ a t_.7z ../../../Archive
./7z_ x t_.7z
echo "compare file"
diff -r ../../../Archive ./Archive
echo "delte tmp file"
rm -rf t_.7z Archive
- name: cmake build 7za & test
run: |
cd ./CPP/7zip/CMAKE/build/
make 7za
cd ./bin
./7za a ta.7z ../../../Archive
./7za x ta.7z
echo "compare file"
diff -r ../../../Archive ./Archive
echo "delete tmp file"
rm -rf ta.7z Archive
- name: cmake build 7zr & test
run: |
cd ./CPP/7zip/CMAKE/build/
make 7zr
cd ./bin
./7zr a tr.7z ../../../Archive
./7zr x tr.7z
echo "compare file"
diff -r ../../../Archive ./Archive
echo "delete tmp file"
rm -rf tr.7z Archive
- name: check
run: |
cd ./check
bash ./check.sh `pwd`/../CPP/7zip/CMAKE/build/bin/7z_
bash ./check_7za.sh `pwd`/../CPP/7zip/CMAKE/build/bin/7za
bash ./check_7zr.sh `pwd`/../CPP/7zip/CMAKE/build/bin/7zr