Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test ci fix #70

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ build:linux --cxxopt=-Wuninitialized --host_cxxopt=-Wuninitialized
# We can probably remove this once we update our proto version
build:macos --cxxopt=-Wno-unknown-warning-option --cxxopt=-Wno-deprecated-builtins --host_cxxopt=-Wno-unknown-warning-option --host_cxxopt=-Wno-deprecated-builtins


## use BAZEL_LLVM on windows
## http://docs.bazel.build/versions/master/windows.html#bulid-c-with-clang
## but it doesn't work with go/cgo yet.
Expand Down
33 changes: 25 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,33 @@ jobs:
strategy:
matrix:
includescanner: ["goma", "clangscandeps"]
os: ["ubuntu-20.04", "macos-13", "windows-2019"]
runs-on: ${{ matrix.os }}
os:
- name: ubuntu-20.04
- name: macos-14
cpu: darwin_x86_64
platform: darwin_amd64_cgo
- name: macos-14
cpu: darwin_arm64
platform: darwin_arm64_cgo
- name: windows-2019

runs-on: ${{ matrix.os.name }}
continue-on-error: true # Allow other marix jobs to complete if one fails
steps:
# Clean up unused tools to have more disk space in the GitHub hosted runner.
- if: runner.os == 'Linux'
name: Free disk space
run:
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
- if: runner.os == 'macOS'
name: Free disk space
run: |
df /
sudo rm -rf "/Applications/Visual Studio.app"
sudo rm -rf "/Applications/Visual Studio 2019.app"
sudo rm -rf "/Users/runner/Library/Android/sdk"
df /
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
Expand All @@ -36,11 +54,10 @@ jobs:
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }} ${{ matrix.includescanner }}
# Share repository cache between workflows with the same image version.
# Invalidating on image version is required because the local toolchain
# needs to be regenerated for new image versions.
repository-cache: ${{ env.ImageVersion }}

# Share repository cache between workflows.
repository-cache: true
- if: matrix.os.cpu
run: echo "--cpu=${{ matrix.os.cpu }} --platforms=@io_bazel_rules_go//go/toolchain:${{ matrix.os.platform }}" >> /Users/runner/.bazelrc
# Checkout the depot tools they are needed by the goma repository
- if: runner.os != 'Windows'
name: Checkout depot tools
Expand Down
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ git_override(
remote = "https://github.com/abseil/abseil-cpp.git",
)

bazel_dep(name = "c-ares", version = "1.15.0", repo_name = "com_github_cares_cares")
bazel_dep(name = "grpc", version = "1.63.1", repo_name = "com_github_grpc_grpc")
bazel_dep(name = "glog", version = "0.7.0", repo_name = "com_github_google_glog")
bazel_dep(name = "gflags", version = "2.2.2", repo_name = "com_github_gflags_gflags")
Expand Down