Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
tinebp committed May 14, 2024
1 parent 15ca829 commit ab56cc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ before_install:
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.3" ]; then
rm -rf $TOOLDIR;
mkdir -p $TRAVIS_BUILD_DIR/build && cd $TRAVIS_BUILD_DIR/build;
TOOLDIR=$TOOLDIR ../configure;
../configure --tooldir=$TOOLDIR;
ci/toolchain_install.sh --all;
echo "v0.3" > "$TOOLDIR/version.txt";
fi
Expand All @@ -44,7 +44,7 @@ before_install:
install:
- if [ ! -d "$HOME/build$XLEN" ] || [ -z "$(ls -A $HOME/build$XLEN)" ] || [ "$(cat "$HOME/build$XLEN/version.txt")" != "$TRAVIS_COMMIT" ]; then
mkdir -p $TRAVIS_BUILD_DIR/build$XLEN && cd $TRAVIS_BUILD_DIR/build$XLEN;
TOOLDIR=$TOOLDIR XLEN=$XLEN ../configure;
../configure --tooldir=$TOOLDIR --xlen=$XLEN;
source ci/toolchain_env.sh;
make build -s > /dev/null;
echo "$TRAVIS_COMMIT" > version.txt;
Expand Down
10 changes: 5 additions & 5 deletions miscs/docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ RUN apt-get update && apt-get install -y \
build-essential \
binutils \
python \
python3 \
uuid-dev \
git \
wget \
curl \
ca-certificates && \
rm -rf /var/lib/apt/lists/*

# upgrade installed components
RUN apt-get upgrade && apt-get update

# Clone the Vortex repository
RUN git clone --depth=1 --recursive https://github.com/vortexgpgpu/vortex.git /vortex

Expand All @@ -24,17 +28,13 @@ WORKDIR /vortex

# Configure the build folder
RUN mkdir build && cd build && \
TOOLDIR=$HOME/tools ../configure
../configure --tooldir=$HOME/tools

# Install prebuilt toolchain
RUN cd build && ./ci/toolchain_install.sh --all

# Source tools environment variables and add to bashrc
RUN source source /vortex/build/ci/toolchain_env.sh
RUN echo "source /vortex/build/ci/toolchain_env.sh" >> ~/.bashrc

# Build Vortex
RUN cd build && make -s

# Set the working directory to /vortex/build
WORKDIR /vortex/build

0 comments on commit ab56cc6

Please sign in to comment.