summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2020-12-11 10:31:20 -0800
committerGitHub <noreply@github.com>2020-12-11 10:31:20 -0800
commit7e00390289ef61dae0f27b22328c77f208917397 (patch)
tree92c92e0d05d5b4c6d807475bd758fcdd46427ec0
parent65c415911a85a444229e2ef090a0d234706e6821 (diff)
downloadflatbuffers-7e00390289ef61dae0f27b22328c77f208917397.tar.gz
flatbuffers-7e00390289ef61dae0f27b22328c77f208917397.tar.bz2
flatbuffers-7e00390289ef61dae0f27b22328c77f208917397.zip
Fix Max CI build path (#6333)
apparently the default xcodebuild path of ./build clashes with the BUILD file present (case insensitive file system?)
-rw-r--r--.github/workflows/build.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a814bfcc..5c3d6a34 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -68,16 +68,17 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: cmake
- run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release .
+ run: cmake -G "Xcode" -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_FLATC_EXECUTABLE=_build/Release/flatc .
- name: build
- run: xcodebuild -toolchain clang -configuration Release -target flattests
+ # NOTE: we need this _build dir to not have xcodebuild's default ./build dir clash with the BUILD file.
+ run: xcodebuild -toolchain clang -configuration Release -target flattests SYMROOT=$(PWD)/_build
- name: test
- run: Release/flattests
+ run: _build/Release/flattests
- name: upload build artifacts
uses: actions/upload-artifact@v1
with:
name: Mac flatc binary
- path: Release/flatc
+ path: _build/Release/flatc
build-android:
name: Build Android (on Linux)