Skip to content

Commit

Permalink
Fix ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rnburn authored and Johannes Tax committed Jul 7, 2020
1 parent fe208d1 commit 3ac2aa5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 51 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:
steps:
- checkout
- run: ./ci/setup_ci_environment.sh
- run: ./ci/setup_cmake.sh
- run: ./ci/install_bazelisk.sh
- run: ./ci/install_gcc48.sh
- run: CC=/usr/bin/gcc-4.8 ./ci/do_ci.sh bazel.legacy.test
- run: CC=/usr/bin/gcc-4.8 CXX=/usr/bin/g++-4.8 ./ci/do_ci.sh bazel.legacy.test

bazel_test:
resource_class: xlarge
Expand All @@ -54,6 +55,7 @@ jobs:
steps:
- checkout
- run: ./ci/setup_ci_environment.sh
- run: ./ci/setup_cmake.sh
- run: ./ci/install_bazelisk.sh
- run: ./ci/do_ci.sh bazel.test

Expand All @@ -64,6 +66,7 @@ jobs:
steps:
- checkout
- run: ./ci/setup_ci_environment.sh
- run: ./ci/setup_cmake.sh
- run: ./ci/install_bazelisk.sh
- run: ./ci/do_ci.sh bazel.noexcept

Expand All @@ -74,6 +77,7 @@ jobs:
steps:
- checkout
- run: ./ci/setup_ci_environment.sh
- run: ./ci/setup_cmake.sh
- run: ./ci/install_bazelisk.sh
- run: ./ci/do_ci.sh bazel.asan

Expand All @@ -84,6 +88,7 @@ jobs:
steps:
- checkout
- run: ./ci/setup_ci_environment.sh
- run: ./ci/setup_cmake.sh
- run: ./ci/install_bazelisk.sh
- run: ./ci/do_ci.sh bazel.tsan

Expand All @@ -94,6 +99,7 @@ jobs:
steps:
- checkout
- run: ./ci/setup_ci_environment.sh
- run: ./ci/setup_cmake.sh
- run: ./ci/install_bazelisk.sh
- run: env BENCHMARK_DIR=/benchmark ./ci/do_ci.sh benchmark
- store_artifacts:
Expand All @@ -115,6 +121,7 @@ jobs:
xcode: "11.0.0"
steps:
- checkout
- run: ./ci/install_osx_cmake.sh
- run: ./ci/install_osx_bazelisk.sh
- run: ./ci/do_ci.sh bazel.test

Expand All @@ -135,6 +142,7 @@ jobs:
executor: win/vs2019
steps:
- checkout
- run: ./ci/setup_windows_cmake.ps1
- run: ./ci/install_windows_bazelisk.ps1
- run: ./ci/do_ci.ps1 bazel.build

Expand Down
4 changes: 0 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ http_archive(
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")

rules_foreign_cc_dependencies([
"//bazel:built_cmake_toolchain_osx",
"//bazel:built_ninja_toolchain_osx",
"//bazel:built_cmake_toolchain_linux",
"//bazel:built_ninja_toolchain_linux",
])

http_archive(
Expand Down
40 changes: 0 additions & 40 deletions bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,3 @@ config_setting(
name = "windows",
constraint_values = ["@bazel_tools//platforms:windows"],
)

toolchain(
name = "built_cmake_toolchain_osx",
exec_compatible_with = [
"@bazel_tools//platforms:osx",
"@bazel_tools//platforms:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_cmake",
toolchain_type = "@rules_foreign_cc//tools/build_defs:cmake_toolchain",
)

toolchain(
name = "built_ninja_toolchain_osx",
exec_compatible_with = [
"@bazel_tools//platforms:osx",
"@bazel_tools//platforms:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_ninja",
toolchain_type = "@rules_foreign_cc//tools/build_defs:ninja_toolchain",
)

toolchain(
name = "built_cmake_toolchain_linux",
exec_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_cmake",
toolchain_type = "@rules_foreign_cc//tools/build_defs:cmake_toolchain",
)

toolchain(
name = "built_ninja_toolchain_linux",
exec_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
],
toolchain = "@rules_foreign_cc//tools/build_defs/native_tools:built_ninja",
toolchain_type = "@rules_foreign_cc//tools/build_defs:ninja_toolchain",
)
6 changes: 0 additions & 6 deletions ci/install_osx_bazelisk.sh

This file was deleted.

5 changes: 5 additions & 0 deletions ci/install_osx_cmake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e

brew install cmake

0 comments on commit 3ac2aa5

Please sign in to comment.