blueloveTH 2 rokov pred
rodič
commit
fcd83337a9
2 zmenil súbory, kde vykonal 8 pridanie a 2 odobranie
  1. 7 1
      .github/workflows/main.yml
  2. 1 1
      build.sh

+ 7 - 1
.github/workflows/main.yml

@@ -103,7 +103,13 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
       - name: Compile and Test
       - name: Compile and Test
         run: |
         run: |
-          bash build.sh
+          mkdir build
+          cd build
+          cmake ..
+          cmake --build . --config Release
+          cp main ../
+          cp libpocketpy.dylib ../
+          cd ..
           python3 scripts/run_tests.py
           python3 scripts/run_tests.py
       - name: Benchmark
       - name: Benchmark
         run: python3 scripts/run_tests.py benchmark
         run: python3 scripts/run_tests.py benchmark

+ 1 - 1
build.sh

@@ -40,7 +40,7 @@ else
     LINK_FLAGS="-Wl,-rpath=."
     LINK_FLAGS="-Wl,-rpath=."
 fi
 fi
 
 
-clang++ $FLAGS -o libpocketpy$LIB_EXTENSION $SRC -fPIC -shared -ldl
+clang++ $FLAGS -o libpocketpy$LIB_EXTENSION $SRC -fPIC -shared
 
 
 # compile main.cpp and link to libpocketpy.so
 # compile main.cpp and link to libpocketpy.so
 echo "> Compiling main.cpp and linking to libpocketpy$LIB_EXTENSION..."
 echo "> Compiling main.cpp and linking to libpocketpy$LIB_EXTENSION..."