From 943f871516758950c01bebce3eb0e84755bf3c20 Mon Sep 17 00:00:00 2001 From: coco875 Date: Wed, 24 Jan 2024 22:56:05 +0100 Subject: [PATCH] fix windows problem and make linux more portable --- .github/workflows/linux_build.yml | 7 ++++++- .github/workflows/windows_build.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml index 8347de6..4f5678f 100644 --- a/.github/workflows/linux_build.yml +++ b/.github/workflows/linux_build.yml @@ -17,8 +17,13 @@ jobs: run: | cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release cmake --build build-cmake -j + - name: Create Package + run: | + mkdir torch-release + mv build-cmake/torch torch-release/ + mv /lib/libbz2.so.1.0 torch-release/ - name: Publish packaged artifacts uses: actions/upload-artifact@v4 with: name: linux-x64 - path: build-cmake/torch* \ No newline at end of file + path: build-cmake/torch \ No newline at end of file diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index 0bf6acd..361ffb2 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -14,7 +14,7 @@ jobs: - name: Build run: | cmake -S . -B "build/x64" -G "Visual Studio 16 2019" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Release - cmake --build build-cmake -j + cmake --build .\build\x64 - name: Publish packaged artifacts uses: actions/upload-artifact@v4 with: