commit
1337f96c48
12 changed files with 38 additions and 13 deletions
25
.cirrus.yml
Normal file
25
.cirrus.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
task:
|
||||||
|
name: freebsd
|
||||||
|
freebsd_instance:
|
||||||
|
image: freebsd-12-1-release-amd64
|
||||||
|
setup_rust_script:
|
||||||
|
- pkg install -y curl git bash
|
||||||
|
- curl https://sh.rustup.rs -sSf --output rustup.sh
|
||||||
|
- sh rustup.sh --default-toolchain none -y --profile=minimal
|
||||||
|
cargo_bin_cache:
|
||||||
|
folder: ~/.cargo/bin
|
||||||
|
target_cache:
|
||||||
|
folder: target
|
||||||
|
prepare_script:
|
||||||
|
- . $HOME/.cargo/env
|
||||||
|
- git config --global user.email "user@example.com"
|
||||||
|
- git config --global user.name "User"
|
||||||
|
- ./prepare.sh
|
||||||
|
test_script:
|
||||||
|
- . $HOME/.cargo/env
|
||||||
|
- # Enable backtraces for easier debugging
|
||||||
|
- export RUST_BACKTRACE=1
|
||||||
|
- # Reduce amount of benchmark runs as they are slow
|
||||||
|
- export COMPILE_RUNS=2
|
||||||
|
- export RUN_RUNS=2
|
||||||
|
- ./test.sh
|
6
build.sh
6
build.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
|
@ -34,13 +34,13 @@ done
|
||||||
# Build cg_clif
|
# Build cg_clif
|
||||||
unset CARGO_TARGET_DIR
|
unset CARGO_TARGET_DIR
|
||||||
unamestr=$(uname)
|
unamestr=$(uname)
|
||||||
if [[ "$unamestr" == 'Linux' ]]; then
|
if [[ "$unamestr" == 'Linux' || "$unamestr" == "FreeBSD" ]]; then
|
||||||
export RUSTFLAGS='-Clink-arg=-Wl,-rpath=$ORIGIN/../lib '$RUSTFLAGS
|
export RUSTFLAGS='-Clink-arg=-Wl,-rpath=$ORIGIN/../lib '$RUSTFLAGS
|
||||||
elif [[ "$unamestr" == 'Darwin' ]]; then
|
elif [[ "$unamestr" == 'Darwin' ]]; then
|
||||||
export RUSTFLAGS='-Csplit-debuginfo=unpacked -Clink-arg=-Wl,-rpath,@loader_path/../lib -Zosx-rpath-install-name '$RUSTFLAGS
|
export RUSTFLAGS='-Csplit-debuginfo=unpacked -Clink-arg=-Wl,-rpath,@loader_path/../lib -Zosx-rpath-install-name '$RUSTFLAGS
|
||||||
dylib_ext='dylib'
|
dylib_ext='dylib'
|
||||||
else
|
else
|
||||||
echo "Unsupported os"
|
echo "Unsupported os $unamestr"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ "$CHANNEL" == "release" ]]; then
|
if [[ "$CHANNEL" == "release" ]]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Requires the CHANNEL env var to be set to `debug` or `release.`
|
# Requires the CHANNEL env var to be set to `debug` or `release.`
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash --verbose
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf target/ build/ build_sysroot/{sysroot_src/,target/,compiler-builtins/} perf.data{,.old}
|
rm -rf target/ build/ build_sysroot/{sysroot_src/,target/,compiler-builtins/} perf.data{,.old}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash --verbose
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rustup component add rust-src rustc-dev llvm-tools-preview
|
rustup component add rust-src rustc-dev llvm-tools-preview
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
dir=$(dirname "$0")
|
dir=$(dirname "$0")
|
||||||
source "$dir/config.sh"
|
source "$dir/config.sh"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
unamestr=$(uname)
|
unamestr=$(uname)
|
||||||
if [[ "$unamestr" == 'Linux' ]]; then
|
if [[ "$unamestr" == 'Linux' || "$unamestr" == 'FreeBSD' ]]; then
|
||||||
dylib_ext='so'
|
dylib_ext='so'
|
||||||
elif [[ "$unamestr" == 'Darwin' ]]; then
|
elif [[ "$unamestr" == 'Darwin' ]]; then
|
||||||
dylib_ext='dylib'
|
dylib_ext='dylib'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")/../"
|
cd "$(dirname "$0")/../"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
2
test.sh
2
test.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
./build.sh --sysroot none "$@"
|
./build.sh --sysroot none "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue