-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker-based build-release.sh script
- Loading branch information
Showing
8 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
members = ["agon-light-emulator-debugger"] | ||
|
||
[workspace.package] | ||
version = "0.9.67" | ||
version = "0.9.68" | ||
edition = "2021" | ||
authors = ["Tom Morton <[email protected]>"] | ||
license = "GPL-3.0" | ||
|
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
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,16 @@ | ||
#!/bin/bash | ||
|
||
# zipped up binaries will be written to ./artifacts | ||
mkdir -p artifacts | ||
|
||
docker build -t fab-agon-emulator-buildenv -f ./dist_scripts/Dockerfile . | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Failed to build docker image!" | ||
exit -1 | ||
fi | ||
|
||
echo Building binaries... | ||
|
||
docker run -i -v ./artifacts:/build/artifacts fab-agon-emulator-buildenv ./dist_scripts/make-dist-linux.sh | ||
docker run -i -v ./artifacts:/build/artifacts fab-agon-emulator-buildenv ./dist_scripts/make-dist-windows.sh |
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
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,20 @@ | ||
FROM rust:1.75.0-slim-bookworm | ||
|
||
RUN apt update && apt install -y wget mingw-w64 zip bzip2 git gcc g++ libsdl2-dev make && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /build | ||
|
||
COPY . . | ||
RUN cd /build && make clean | ||
RUN mkdir /build/artifacts | ||
|
||
# Windows dependencies | ||
RUN rustup target add x86_64-pc-windows-gnu | ||
RUN cd /build && wget --quiet https://github.com/libsdl-org/SDL/releases/download/release-2.28.3/SDL2-devel-2.28.3-mingw.tar.gz && tar xvzf SDL2-devel-2.28.3-mingw.tar.gz | ||
RUN mv /build/SDL2-2.28.3 /build/SDL2 | ||
RUN cp /build/SDL2/x86_64-w64-mingw32/bin/SDL2.dll /build | ||
RUN cp /usr/lib/gcc/x86_64-w64-mingw32/12-posix/libgcc_s_seh-1.dll /build | ||
RUN cp /usr/lib/gcc/x86_64-w64-mingw32/12-posix/libstdc++-6.dll /build | ||
RUN cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /build | ||
|
||
CMD ["bash"] |
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
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