remove docker and add artifacts

This commit is contained in:
coco875
2024-01-24 16:52:59 -06:00
committed by Lywx
parent 6b98f3eb92
commit c98f14df51
4 changed files with 12 additions and 33 deletions
+6 -1
View File
@@ -16,4 +16,9 @@ jobs:
- name: Build
run: |
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build build-cmake -j
cmake --build build-cmake -j
- name: Publish packaged artifacts
uses: actions/upload-artifact@v4
with:
name: linux-x64
path: build-cmake/torch
+6 -1
View File
@@ -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
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
-13
View File
@@ -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'
-18
View File
@@ -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
```