mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 08:31:38 +00:00
Fix Max CI build path (#6333)
apparently the default xcodebuild path of ./build clashes with the BUILD file present (case insensitive file system?)
This commit is contained in:
committed by
GitHub
parent
65c415911a
commit
7e00390289
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -68,16 +68,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: cmake
|
- 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
|
- 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
|
- name: test
|
||||||
run: Release/flattests
|
run: _build/Release/flattests
|
||||||
- name: upload build artifacts
|
- name: upload build artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: Mac flatc binary
|
name: Mac flatc binary
|
||||||
path: Release/flatc
|
path: _build/Release/flatc
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
name: Build Android (on Linux)
|
name: Build Android (on Linux)
|
||||||
|
|||||||
Reference in New Issue
Block a user