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: |
|
||||
chmod +x makefile.sh
|
||||
|
||||
- name: Compile using makefile.sh
|
||||
- name: Run `makefile.sh` to prepare Makefile
|
||||
run: |
|
||||
./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
|
||||
echo "::error::Compilation failed"
|
||||
exit 1
|
||||
|
@ -31,6 +40,11 @@ jobs:
|
|||
- name: Run Tests
|
||||
run: |
|
||||
cd ComputationalGeometry/6Ex
|
||||
if [ ! -f "./a.out" ]; then
|
||||
echo "::error::Executable not found: a.out"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for file in t/*; do
|
||||
echo "Testing with file: $file"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue