mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
6b7f3d01ae
It makes sense to test release mode, plus we're up against the time limits of CI, so this should make room.
24 lines
836 B
Bash
Executable File
24 lines
836 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
set -e
|
|
|
|
export CC=clang-6.0
|
|
export CXX=clang++-6.0
|
|
echo $PATH
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
|
make -j2 install
|
|
./zig build --build-file ../build.zig test
|
|
|
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
|
mkdir $TRAVIS_BUILD_DIR/artifacts
|
|
docker run -it --mount type=bind,source="$TRAVIS_BUILD_DIR/artifacts",target=/z ziglang/static-base:llvm6-1 -j2 $TRAVIS_COMMIT
|
|
echo "access_key = $AWS_ACCESS_KEY_ID" >> ~/.s3cfg
|
|
echo "secret_key = $AWS_SECRET_ACCESS_KEY" >> ~/.s3cfg
|
|
s3cmd put -P $TRAVIS_BUILD_DIR/artifacts/* s3://ziglang.org/builds/
|
|
touch empty
|
|
s3cmd put -P empty s3://ziglang.org/builds/zig-linux-x86_64-$TRAVIS_BRANCH.tar.xz --add-header="Cache-Control: max-age=0, must-revalidate" --add-header=x-amz-website-redirect-location:/builds/$(ls $TRAVIS_BUILD_DIR/artifacts)
|
|
fi
|