File tree Expand file tree Collapse file tree 6 files changed +15
-4
lines changed
docs/website/docs/tutorials Expand file tree Collapse file tree 6 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ install_ubuntu() {
22
22
# Cleanup package manager
23
23
apt-get autoclean && apt-get clean
24
24
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
25
+
26
+ sh -c " $( curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh) "
27
+ (echo; echo ' eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' ) >> /root/.profile
28
+ eval " $( /home/linuxbrew/.linuxbrew/bin/brew shellenv) "
29
+ mv /home/linuxbrew/.linuxbrew/bin/brew /usr/bin/
25
30
}
26
31
27
32
# Install base packages depending on the base OS
Original file line number Diff line number Diff line change 1
- # TODO: We might need to update this to install flatbuffers from the pinned commit
2
- # in fbcode/executorch/third-party/flatbuffers.submodule.txt
3
- flatbuffers=2.0.0
4
1
cmake=3.22.1
Original file line number Diff line number Diff line change 20
20
21
21
# As Linux job is running inside a Docker container, all of its dependencies
22
22
# have already been installed
23
+ install_flatc
23
24
install_executorch
24
25
build_executorch_runner " ${BUILD_TOOL} "
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ install_buck() {
27
27
brew install wget
28
28
fi
29
29
30
+ if ! command -v flatc & > /dev/null; then
31
+ brew install flatbuffers
32
+ fi
33
+
30
34
BUCK2_NOT_AVAILABLE=false
31
35
if ! command -v buck2 & > /dev/null; then
32
36
BUCK2_NOT_AVAILABLE=true
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ retry () {
15
15
" $@ " || (sleep 30 && reset_buck && " $@ " ) || (sleep 60 && reset_buck && " $@ " )
16
16
}
17
17
18
+ install_flatc () {
19
+ brew install flatbuffers
20
+ }
21
+
18
22
install_executorch () {
19
23
which pip
20
24
# Install executorch, this assumes that Executorch is checked out in the
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ conda create -yn executorch python=3.10.0
17
17
conda activate executorch
18
18
19
19
conda install cmake
20
- conda install -c conda-forge flatbuffers
20
+ brew install flatbuffers
21
21
```
22
22
23
23
### Step 2: Clone the ` executorch ` repo
You can’t perform that action at this time.
0 commit comments