diff --git a/.bazelrc b/.bazelrc index f4f0f753..5de0c37f 100644 --- a/.bazelrc +++ b/.bazelrc @@ -5,3 +5,6 @@ build --cxxopt=-Wno-sign-compare # build. build --host_crosstool_top=@bazel_tools//tools/cpp:toolchain build --enable_bzlmod=false + +# Platform specific configuration. +build:macos --macos_minimum_os=12.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51f9b527..4b501986 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,3 +17,10 @@ jobs: uses: actions/checkout@v4 - name: Build uses: ./.github/actions/iamf-tools-builder + macos-amd64: + runs-on: macos-12 + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Build + uses: ./.github/actions/iamf-tools-builder diff --git a/iamf/common/write_bit_buffer.cc b/iamf/common/write_bit_buffer.cc index 852d87b5..94a23696 100644 --- a/iamf/common/write_bit_buffer.cc +++ b/iamf/common/write_bit_buffer.cc @@ -12,7 +12,6 @@ #include "iamf/common/write_bit_buffer.h" #include -#include #include #include #include @@ -180,7 +179,7 @@ absl::Status WriteBitBuffer::WriteString(const std::string& data) { for (int i = 0; i < kIamfMaxStringSize; i++) { // Note that some systems have `char` as signed and others unsigned. Write // the same raw byte value regardless. - const uint8_t byte = std::bit_cast(data[i]); + const uint8_t byte = static_cast(data[i]); RETURN_IF_NOT_OK(WriteUnsignedLiteral(byte, 8)); // Exit successfully after last byte was written.