Skip to content

apply #232 to p7zip17 also #61

apply #232 to p7zip17 also

apply #232 to p7zip17 also #61

Workflow file for this run

name: macos
on: [push, pull_request]
jobs:
macos:
name: macos-build
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: build 7za & test
run: |
cp makefile.macosx_gcc_64bits makefile.machine
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 ..
macos-cmake:
name: macos-cmake-build
runs-on: macos-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