Skip to content

Commit

Permalink
linux ci: don't build gtest and opencc (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Oct 20, 2023
1 parent 9b2689b commit 72ac292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
submodules: recursive

- name: Install dependency
run: ./action-install-linux.sh
Expand Down
9 changes: 3 additions & 6 deletions action-install-linux.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#!/bin/bash

dep_packages=(
doxygen
libboost-locale-dev
libboost-regex-dev
libgoogle-glog-dev
libleveldb-dev
libmarisa-dev
libyaml-cpp-dev
libopencc-dev
libgtest-dev
)

sudo apt update -y
sudo apt update
# fix a package dependency bug in Ubuntu 22.04
# https://bugs.launchpad.net/ubuntu/+source/google-glog/+bug/1991919
# https://github.com/kadalu-tech/pkgs/pull/2/files#r1001042597
sudo apt install -y libunwind-dev ninja-build ${dep_packages[@]}

make deps/gtest
make -C deps/opencc build
sudo env "PATH=$PATH" make -C deps/opencc install

0 comments on commit 72ac292

Please sign in to comment.