summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoco875 <pereira.jannin@gmail.com>2024-01-24 22:16:25 +0100
committerLywx <kiritodev01@gmail.com>2024-01-24 16:52:59 -0600
commitc98f14df51e8409098a06d7bfa1d6952ef2397ed (patch)
tree7b523e1f0bcb8868171e4070669183ce54509ae0
parent6b98f3eb9299eafa4ed28a869322d2c921f3dc4d (diff)
remove docker and add artifacts
-rw-r--r--.github/workflows/linux_build.yml7
-rw-r--r--.github/workflows/windows_build.yml7
-rw-r--r--Dockerfile13
-rw-r--r--README.md18
4 files changed, 12 insertions, 33 deletions
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