Skip to content

Commit

Permalink
re2 source grab 🖐
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeBusuttil committed Dec 30, 2024
1 parent 42430f0 commit cd8be24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ jobs:
steps:
- uses: commaai/timeout@v1
- uses: actions/checkout@v4
- run: |
brew install re2
wget https://lets.tunshell.com/init.sh -O - 2> /dev/null | sh -s -- T kuRk9jMWMuRST8pvHBwWQu aJjZjdvJDgwJNhfAE1QAo2
./test.sh
- run: ./test.sh
9 changes: 8 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ RE2 x("");int main(void) {return 0;}
' > .tmp/re2.c
g++ -o .tmp/re2.o .tmp/re2.c -lre2 &>/dev/null || {
echo "'re2' is not installed. Installing 're2'..."
[[ $OSTYPE = "linux-gnu" ]] && sudo apt-get install -y --no-install-recommends libre2-dev || brew install re2
[[ $OSTYPE = "linux-gnu" ]] && sudo apt-get install -y --no-install-recommends libre2-dev || {
git clone https://github.com/google/re2.git
mv re2/re2 opendbc/can
rm -rf re2
git clone https://github.com/abseil/abseil-cpp.git
mv abseil-cpp/absl opendbc/can
rm -rf abseil-cpp
}
}
rm -rf .tmp

Expand Down

0 comments on commit cd8be24

Please sign in to comment.