Skip to content

Commit

Permalink
Bazel support: Remove Bazel specific example and use same examples as…
Browse files Browse the repository at this point in the history
… CMake build

Signed-off-by: Vertexwahn <julian.amann@tum.de>
  • Loading branch information
Vertexwahn committed Aug 13, 2023
1 parent d688d05 commit 194a629
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 74 deletions.
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"],
)

0 comments on commit 194a629

Please sign in to comment.