Skip to content

Commit

Permalink
Fix github CI (#470)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #470

Reviewed By: malanka

Differential Revision: D62227838

fbshipit-source-id: 01802dd992322466e433a05cbb63c3169a22e014
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Sep 5, 2024
1 parent 9d55822 commit c0f64b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ jobs:
update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-$VER 10
# needed for `hsc2hs`, `g++` is hardcoded into `hsc2hs-options`.
update-alternatives --install /usr/bin/g++ g++ /usr/bin/clang++-$VER 10
echo CABAL_CONFIG_FLAGS="$CABAL_CONFIG_FLAGS -fclang" >>"$GITHUB_ENV"
- name: Install folly and rocksdb dependencies
run: |
Expand All @@ -156,7 +157,7 @@ jobs:
run: cabal update

- name: Disable some tests
run: echo CABAL_CONFIG_FLAGS="-f-hack-tests -f-rust-tests -f-python-tests" >> "$GITHUB_ENV"
run: echo CABAL_CONFIG_FLAGS="$CABAL_CONFIG_FLAGS -f-hack-tests -f-rust-tests -f-python-tests" >> "$GITHUB_ENV"

- name: Install hsthrift and Glean dependencies
run: apt-get install -y pkg-config rsync libgmock-dev libpcre3-dev libtinfo-dev libxxhash-dev
Expand Down
7 changes: 6 additions & 1 deletion glean.cabal.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ common fb-haskell
ghc-options: -O2

common fb-cpp
cxx-options: -std=c++17 -fcoroutines
cxx-options: -std=c++17
if !flag(clang)
cxx-options: -fcoroutines
if arch(x86_64)
cxx-options: -march=haswell
if flag(opt)
Expand All @@ -63,6 +65,9 @@ common fb-cpp
common exe
ghc-options: -threaded

flag clang
default: False

flag opt
default: False

Expand Down
2 changes: 1 addition & 1 deletion glean/lang/go/tests/cases/xrefs/metadata.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"textEncoding": 1
}
}
]
]

0 comments on commit c0f64b6

Please sign in to comment.