Skip to content

Commit

Permalink
releaser: doesn't work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Motiejus Jakštys committed Feb 21, 2024
1 parent c22cad0 commit ef06f16
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,24 @@ jobs:
- run: echo "build --sandbox_add_mount_pair=C:\\Temp" >> .bazelrc.ci
if: runner.os == 'Windows'


# Linux, macOS and Windows
- run: ci/list_toolchains_platforms
- run: ci/zig-utils

# Linux and Windows
- run: tools/bazel test --config=darwin_toolchains //...
if: runner.os == 'Linux' || runner.os == 'Windows'
- run: ci/prepare_git && ci/test_example rules_cc override_repository
if: runner.os == 'Linux' || runner.os == 'macOS'

# Linux and macOS
- run: ci/release
if: runner.os == 'Linux' || runner.os == 'macOS'
# MacOS
- run: tools/bazel test --build_tag_filters=-darwin_c //...
if: runner.os == 'macOS'
- run: tools/bazel build --config=darwin_toolchains --build_tag_filters=darwin_c //...
if: runner.os == 'macOS'

# Linux and macOS. On Windows protoc does not compile due to `-lpthread`.
- run: ci/lint
if: runner.os == 'Linux' || runner.os == 'macOS'

# Linux
# TODO MacOS: cgo.
- run: ci/prepare_git && ci/test_example bzlmod override_module
if: runner.os == 'Linux'


# macOS
- run: tools/bazel build --config=darwin_toolchains --build_tag_filters=darwin_c //...
if: runner.os == 'macOS'
# Linux, macOS and Windows
- run: ci/list_toolchains_platforms
- run: ci/zig-utils
- run: ci/release
- run: ci/prepare_git && ci/test_example rules_cc override_repository
- run: ci/prepare_git && ci/test_example bzlmod override_module
4 changes: 2 additions & 2 deletions examples/bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Copyright 2023 Uber Technologies, Inc.
# Licensed under the MIT License
try-import %workspace%/../../.bazelrc.ci

test --sandbox_default_allow_network=false
test --test_output=errors

build --incompatible_disallow_empty_glob
build --verbose_failures
build --worker_sandboxing

build --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1

build --sandbox_add_mount_pair=/tmp
build --sandbox_add_mount_pair=/var/tmp

Expand Down
2 changes: 2 additions & 0 deletions examples/rules_cc/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Copyright 2023 Uber Technologies, Inc.
# Licensed under the MIT License
try-import %workspace%/../../.bazelrc.ci

test --sandbox_default_allow_network=false
test --test_output=errors

Expand Down

0 comments on commit ef06f16

Please sign in to comment.