mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
remove docker and add artifacts
This commit is contained in:
@@ -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
|
||||
@@ -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
@@ -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'
|
||||
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user