Make теперь вызывается
This commit is contained in:
parent
f65226d9ee
commit
218abec120
1 changed files with 15 additions and 1 deletions
16
.github/workflows/compile-and-test.yml
vendored
16
.github/workflows/compile-and-test.yml
vendored
|
@ -20,9 +20,18 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
chmod +x makefile.sh
|
chmod +x makefile.sh
|
||||||
|
|
||||||
- name: Compile using makefile.sh
|
- name: Run `makefile.sh` to prepare Makefile
|
||||||
run: |
|
run: |
|
||||||
./makefile.sh
|
./makefile.sh
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "::error::makefile.sh failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Compile using Makefile
|
||||||
|
run: |
|
||||||
|
cd ComputationalGeometry/6Ex
|
||||||
|
make
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "::error::Compilation failed"
|
echo "::error::Compilation failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -31,6 +40,11 @@ jobs:
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
cd ComputationalGeometry/6Ex
|
cd ComputationalGeometry/6Ex
|
||||||
|
if [ ! -f "./a.out" ]; then
|
||||||
|
echo "::error::Executable not found: a.out"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
for file in t/*; do
|
for file in t/*; do
|
||||||
echo "Testing with file: $file"
|
echo "Testing with file: $file"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue