* actions * add build scripts * chmod +x * remove clang env * add ARM builds * install LLVM for Windows * check LLVM * remove fi * check platform * fix LLVM install on windows * diff cache * remove unexpected token && * remove build directory cache from windows * remove Show ENV * fix cross and RUSTFLAGS * final fix for ARM and Windows build * typo * fix PATH for artifacts * sudo for install set PATH . for artifacts.zip * target names for artifacts * platform names for artifacts * remove ARM builds PLATFORM for build scripts * remove PLATFORM and change PATH for artifacts.zip * change PATH for artifacts * fix sccache * set sccache env * Update install-sccache.ps1 * Update install-sccache.ps1 * global env * set global sccache env * SCCACHE_CACHE_SIZE "1G" SCCACHE_IDLE_TIMEOUT 0 * Update build-windows.sh
20 lines
613 B
PowerShell
Executable File
20 lines
613 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
|
$os=$args[0]
|
|
$version="0.2.12"
|
|
echo "Current OS:" $os
|
|
switch ($os){
|
|
"macOS" {$platform = "x86_64-apple-darwin"}
|
|
"Linux" {$platform = "x86_64-unknown-linux-musl"}
|
|
"Windows" {$platform ="x86_64-pc-windows-msvc"}
|
|
}
|
|
echo "Target arch: " $platform
|
|
$basename = "sccache-$version-$platform"
|
|
$url = "https://github.com/mozilla/sccache/releases/download/"+"$version/$basename.tar.gz"
|
|
echo "Download sccache from "+$url
|
|
curl -LO $url
|
|
tar -xzvf "$basename.tar.gz"
|
|
ls $basename/
|
|
. $basename/sccache --start-server
|
|
echo "::add-path::$(pwd)/$basename"
|
|
echo "::set-env name=RUSTC_WRAPPER::sccache"
|