blueloveTH %!s(int64=2) %!d(string=hai) anos
pai
achega
fcd83337a9
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  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
       - name: Compile and Test
         run: |
-          bash build.sh
+          mkdir build
+          cd build
+          cmake ..
+          cmake --build . --config Release
+          cp main ../
+          cp libpocketpy.dylib ../
+          cd ..
           python3 scripts/run_tests.py
       - name: Benchmark
         run: python3 scripts/run_tests.py benchmark

+ 1 - 1
build.sh

@@ -40,7 +40,7 @@ else
     LINK_FLAGS="-Wl,-rpath=."
 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
 echo "> Compiling main.cpp and linking to libpocketpy$LIB_EXTENSION..."