mirror of https://github.com/sgoudham/uwuifyy.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
499 B
Bash
21 lines
499 B
Bash
3 years ago
|
#!/usr/bin/env bash
|
||
|
# Script for building your rust projects.
|
||
|
set -e
|
||
|
|
||
|
source ci/common.bash
|
||
|
|
||
|
# $1 {path} = Path to cross/cargo executable
|
||
|
CROSS=$1
|
||
|
# $1 {string} = <Target Triple> e.g. x86_64-pc-windows-msvc
|
||
|
TARGET_TRIPLE=$2
|
||
|
# $3 {boolean} = Are we building for deployment?
|
||
|
RELEASE_BUILD=$3
|
||
|
|
||
|
required_arg $CROSS 'CROSS'
|
||
|
required_arg $TARGET_TRIPLE '<Target Triple>'
|
||
|
|
||
|
if [ -z "$RELEASE_BUILD" ]; then
|
||
|
$CROSS build --target $TARGET_TRIPLE
|
||
|
else
|
||
|
$CROSS build --target $TARGET_TRIPLE --release
|
||
|
fi
|