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

Bazel support: Remove Bazel specific example #1516

Merged
Merged
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
13 changes: 8 additions & 5 deletions .github/workflows/bazel_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ permissions:

jobs:
build_and_test_ubuntu:
name: Linux Ubuntu 20.04 Bazel build <GCC 9.3.0>
runs-on: ubuntu-20.04
name: Linux Ubuntu 22.04 Bazel build <GCC 11.4.0>
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand All @@ -41,11 +41,12 @@ jobs:
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel-ubuntu
key: bazel-ubuntu-22

- name: Build
run: |
bazelisk build //...
bazelisk test //...

build_and_test_windows:
name: Windows Server 2022 build <Visual Studio 2022>
Expand All @@ -58,11 +59,12 @@ jobs:
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel-windows
key: bazel-windows-2022

- name: Build
run: |
bazelisk build //...
bazelisk test //...

build_and_test_macos:
name: macOS 13 Bazel build <Apple Clang14>
Expand All @@ -75,8 +77,9 @@ jobs:
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel-macos
key: bazel-macos-13

- name: Build
run: |
bazelisk build //...
bazelisk test //...
8 changes: 0 additions & 8 deletions bazel/example/BUILD.bazel

This file was deleted.

61 changes: 0 additions & 61 deletions bazel/example/main.cpp

This file was deleted.

28 changes: 28 additions & 0 deletions src/examples/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cc_test(
name = "OpenEXRExamples",
srcs = [
"deepExamples.cpp",
"deepExamples.h",
"deepTiledExamples.cpp",
"deepTiledExamples.h",
"drawImage.cpp",
"drawImage.h",
"generalInterfaceExamples.cpp",
"generalInterfaceExamples.h",
"generalInterfaceTiledExamples.cpp",
"generalInterfaceTiledExamples.h",
"lowLevelIoExamples.cpp",
"lowLevelIoExamples.h",
"main.cpp",
"multipartExamples.cpp",
"multipartExamples.h",
"namespaceAlias.h",
"previewImageExamples.cpp",
"previewImageExamples.h",
"rgbaInterfaceExamples.cpp",
"rgbaInterfaceExamples.h",
"rgbaInterfaceTiledExamples.cpp",
"rgbaInterfaceTiledExamples.h",
],
deps = ["//:OpenEXR"],
)