#!/usr/bin/env bash CARGO="cargo build --release --target" targets=( i686-apple-darwin i686-pc-windows-gnu ) for target in "${targets[@]}"; do $CARGO "$target" done