From c98f14df51e8409098a06d7bfa1d6952ef2397ed Mon Sep 17 00:00:00 2001 From: coco875 Date: Wed, 24 Jan 2024 22:16:25 +0100 Subject: remove docker and add artifacts --- .github/workflows/linux_build.yml | 7 ++++++- .github/workflows/windows_build.yml | 7 ++++++- Dockerfile | 13 ------------- README.md | 18 ------------------ 4 files changed, 12 insertions(+), 33 deletions(-) delete mode 100644 Dockerfile diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml index f564c55..13d1509 100644 --- a/.github/workflows/linux_build.yml +++ b/.github/workflows/linux_build.yml @@ -16,4 +16,9 @@ jobs: - name: Build run: | cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug - cmake --build build-cmake -j \ No newline at end of file + cmake --build build-cmake -j + - name: Publish packaged artifacts + uses: actions/upload-artifact@v4 + with: + name: linux-x64 + 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 a7ee5ce..43b32e8 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -13,4 +13,9 @@ jobs: - uses: actions/checkout@v4 - name: Build run: | - cmake -S . -B "build/x64" -G "Visual Studio 16 2019" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Debug \ No newline at end of file + cmake -S . -B "build/x64" -G "Visual Studio 16 2019" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Release + - name: Publish packaged artifacts + uses: actions/upload-artifact@v4 + with: + name: windows + path: build/x64 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 71df5e8..0000000 --- a/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM ubuntu:22.04 as build - -RUN apt-get update && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y \ - cmake \ - ninja-build \ - libbz2-dev - -RUN mkdir /torch -WORKDIR /torch - -CMD echo 'Usage: docker run -it --rm -v .:/torch torch cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug && cmake --build build-cmake -j\n'\ - 'See https://github.com/HarbourMasters/Torch/blob/master/README.md for more information' \ No newline at end of file diff --git a/README.md b/README.md index 4de348b..378db7b 100644 --- a/README.md +++ b/README.md @@ -67,21 +67,3 @@ Requires Xcode (or xcode-tools) && `cmake, ninja` (can be installed via homebrew cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug cmake --build build-cmake -j ``` - -# Docker - -Build the Docker image: -``` bash -docker build -t torch . -``` - -When building and using other tools, append the following in front of every command you run: -``` bash -docker run --rm -v .:/torch torch -``` - -For example: -``` bash -docker run --rm -v .:/torch torch cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -docker run --rm -v .:/torch torch cmake --build build-cmake -j -``` \ No newline at end of file -- cgit v1.2.3