[+] OSXCross rust build

This commit is contained in:
Azalea Gui 2024-12-22 04:47:16 -05:00
parent ca74acbafb
commit 90d12d9385
3 changed files with 44 additions and 3 deletions

View file

@ -2,10 +2,14 @@
set -e
# Step 1: Build the Docker image
echo "Building the Docker image..."
#echo "Building the Docker image..."
docker build -t rust-builder-general tools/rust-builder/general
# Step 2: Run the Docker container and execute the builder script
echo "Running the Docker container..."
docker run --rm -v "$(pwd)":/app rust-builder-general bash -c "cd /app && ./tools/rust-builder/general/build.sh"
echo "Building MacOS Docker image..."
docker build -t rust-builder-osx tools/rust-builder/osx
echo "Running MacOS Docker container..."
docker run --rm -v "$(pwd)":/app rust-builder-osx bash -c "cd /app && ./tools/rust-builder/osx/build.sh"