diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-20 19:32:03 +0400 | 
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-20 19:32:03 +0400 | 
| commit | 81dff65713ef63cfab918decb9edacb2f32759ef (patch) | |
| tree | 17a883479f87defb80fc8dc5f45e8b0c719da58d /.ci/build.sh | |
| parent | a6b9dd778f5a017ba246ec4bd0f679e9539dac02 (diff) | |
new build infrastructure
Diffstat (limited to '.ci/build.sh')
| -rwxr-xr-x | .ci/build.sh | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/.ci/build.sh b/.ci/build.sh new file mode 100755 index 0000000..0ff94c4 --- /dev/null +++ b/.ci/build.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +N=4 +i=0 +TARGETS=( +   # Linux builds +   "linux-arm64-gnuc:aarch64-unknown-linux-gnu" +   "linux-arm64-musl:aarch64-unknown-linux-musl" +   "linux-armv7-gnuc:armv7-unknown-linux-gnueabi" +   "linux-armv7-musl:armv7-unknown-linux-musleabi" +   "linux-86_64-gnuc:x86_64-unknown-linux-gnu" +   "linux-86_64-musl:x86_64-unknown-linux-musl" + +   # windows builds +   "windows-86_64-gnu:x86_64-pc-windows-gnu" +) + +for thing in "${TARGETS[@]}"; do  +   KEY=${thing%%:*} +   VALUE=${thing#*:} +    +   echo "* BUILDING FOR $VALUE" +   cross build --release --target $VALUE + +   # Copy intol folders +   mkdir -p ./build/$KEY/ +   cp target/$VALUE/release/* ./build/$KEY/ + +   rm ./build/$KEY/*.{d,rlib} +done + +wait < <(jobs -p)  | 
