feat: add git hash to --version / version outputs

This commit is contained in:
Aaron Blankstein
2020-05-18 12:41:59 -05:00
parent 978f31272d
commit 00731a69cc
12 changed files with 69 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ COPY . .
RUN rustup target add aarch64-unknown-linux-gnu
RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu
RUN apt-get update && apt-get install -y git gcc-aarch64-linux-gnu
RUN CC=aarch64-linux-gnu-gcc \
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \

View File

@@ -6,7 +6,7 @@ COPY . .
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN apt-get update && apt-get install -y gcc-arm-linux-gnueabihf
RUN apt-get update && apt-get install -y git gcc-arm-linux-gnueabihf
RUN CC=arm-linux-gnueabihf-gcc \
CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \

View File

@@ -6,7 +6,7 @@ COPY . .
RUN rustup target add x86_64-unknown-linux-musl
RUN apt-get update && apt-get install -y musl-tools
RUN apt-get update && apt-get install -y git musl-tools
RUN CC=musl-gcc \
CC_x86_64_unknown_linux_musl=musl-gcc \

View File

@@ -4,6 +4,8 @@ WORKDIR /src
COPY . .
RUN apt-get update && apt-get install -y git
RUN rustup target add x86_64-unknown-linux-gnu
RUN cargo build --release --workspace=./ --target x86_64-unknown-linux-gnu

View File

@@ -6,7 +6,7 @@ COPY . .
RUN rustup target add x86_64-apple-darwin
RUN apt-get update && apt-get install -y clang
RUN apt-get update && apt-get install -y git clang
RUN wget -nc "https://github.com/blockstackpbc/osxcross/releases/download/v1/osxcross-e0a1718_xcode-v10.2.1.tar.xz" && \
tar --checkpoint=25000 -xf "osxcross-e0a1718_xcode-v10.2.1.tar.xz" -C /tmp && \

View File

@@ -6,7 +6,7 @@ COPY . .
RUN rustup target add x86_64-pc-windows-gnu
RUN apt-get update && apt-get install -y gcc-mingw-w64-x86-64
RUN apt-get update && apt-get install -y git gcc-mingw-w64-x86-64
RUN CC_x86_64_pc_windows_gnu=x86_64-w64-mingw32-gcc \
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER=x86_64-w64-mingw32-gcc \