mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-08-28 19:59:31 +00:00
![VeryTastyTomato](/assets/img/avatar_default.png)
SC2086: Double quote to prevent globbing and word splitting. SC2162: read without -r will mangle backslashes
17 lines
368 B
Bash
Executable file
17 lines
368 B
Bash
Executable file
#!/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>
|
|
TARGET_TRIPLE=$2
|
|
|
|
required_arg "$CROSS" 'CROSS'
|
|
required_arg "$TARGET_TRIPLE" '<Target Triple>'
|
|
|
|
$CROSS test --target "$TARGET_TRIPLE"
|
|
$CROSS build --target "$TARGET_TRIPLE" --all-features
|