-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6a6b1e
commit 3205696
Showing
5 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
docker build -f ./dockerfile.linux-x86_64 --progress=plain . | ||
|
||
id=$(docker create $(docker build -f ./dockerfile.linux-x86_64 -q .)) | ||
docker cp $id:/rust/build/vulka-linux-x86_64.zip . |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
docker build -f ./dockerfile.win-x86_64 --progress=plain . | ||
|
||
id=$(docker create $(docker build -f ./dockerfile.win-x86_64 -q .)) | ||
docker cp $id:/rust/build/vulka-win-x86_64.zip . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:22.04 | ||
RUN apt update && apt -y install \ | ||
curl zip build-essential cmake git python3 pkg-config libwayland-dev | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
RUN ~/.cargo/bin/rustup update | ||
RUN ~/.cargo/bin/rustup target add x86_64-unknown-linux-gnu | ||
WORKDIR /rust/build/ | ||
COPY Cargo.toml . | ||
COPY Cargo.lock . | ||
RUN sh -c "echo 'fn main() {}' > dummy.rs" | ||
RUN sed -i 's#src/main.rs#dummy.rs#' Cargo.toml | ||
RUN ~/.cargo/bin/cargo build --release --target x86_64-unknown-linux-gnu | ||
RUN sed -i 's#dummy.rs#src/main.rs#' Cargo.toml | ||
RUN rm ./dummy.rs | ||
COPY . . | ||
RUN ~/.cargo/bin/cargo build --release --target x86_64-unknown-linux-gnu | ||
|
||
RUN cp ./target/x86_64-unknown-linux-gnu/release/vulka . | ||
|
||
RUN zip -r vulka-linux-x86_64.zip \ | ||
./checker-map.png ./vulka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters