apply #232 to p7zip17 also #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |