Skip to content

Cleanup actions #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,31 @@ jobs:
run: |
pacman -Syu --needed --noconfirm \
git unzip ghc cabal-install haskell-shake haskell-aeson-pretty \
cmake extra-cmake-modules ninja fmt fcitx5 boost python opencc jdk17-openjdk check
cmake extra-cmake-modules ninja fmt fcitx5 boost python opencc jre-openjdk

- name: Fetch source code
uses: actions/checkout@v4
with:
submodules: recursive
# this only sync submodules specified in .gitmodules,
# because we don't want recursive submodules in glog, librime, etc.
submodules: true

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Install NDK and CMake
- name: Fetch submodules
run: |
sdkmanager --install "ndk;${{ env.NDK_VERSION }}"
sdkmanager --install "cmake;${{ env.CMAKE_VERSION }}"
# it appears to be a bug when building in containers: https://github.com/actions/checkout/issues/915
git config --global --add safe.directory '*'
# fetch libime submodule kenlm since it's not in .gitmodules
git submodule update --init --recursive libime

- name: Setup Android NDK
uses: android-actions/setup-android@v3
with:
packages: "ndk;${{ env.NDK_VERSION }} cmake;${{ env.CMAKE_VERSION }}"

- name: Build everything
env:
LANG: "C.UTF-8"
ANDROID_NDK_ROOT: ${{ env.ANDROID_HOME }}/ndk/${{ env.NDK_VERSION }}
run: |
git config --global --add safe.directory '*'
# use archlinux's dynamic only ghc
cabal configure --disable-library-vanilla --enable-shared --enable-executable-dynamic --ghc-options=-dynamic
./build-cabal -j everything
Expand Down
10 changes: 5 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
[submodule "fmt"]
path = fmt
url = https://github.com/fmtlib/fmt
ignore = untracked
[submodule "libuv"]
path = libuv
url = https://github.com/libuv/libuv
ignore = untracked
[submodule "libintl-lite"]
path = libintl-lite
url = https://github.com/j-jorge/libintl-lite
ignore = untracked
[submodule "Lua"]
path = Lua
url = https://github.com/walterschell/Lua
ignore = untracked
[submodule "OpenCC"]
path = OpenCC
url = https://github.com/BYVoid/OpenCC
ignore = untracked
fetchRecurseSubmodules = false
[submodule "anthy-unicode"]
path = anthy-unicode
url = https://github.com/fujiwarat/anthy-unicode
Expand All @@ -27,15 +23,18 @@
[submodule "yaml-cpp"]
path = yaml-cpp
url = https://github.com/jbeder/yaml-cpp
fetchRecurseSubmodules = false
[submodule "leveldb"]
path = leveldb
url = https://github.com/google/leveldb
fetchRecurseSubmodules = false
[submodule "marisa-trie"]
path = marisa-trie
url = https://github.com/rime/marisa-trie
[submodule "librime"]
path = librime
url = https://github.com/rime/librime
fetchRecurseSubmodules = false
[submodule "librime-lua"]
path = librime-lua
url = https://github.com/hchunhui/librime-lua
Expand All @@ -54,6 +53,7 @@
[submodule "libime"]
path = libime
url = https://github.com/fcitx/libime
fetchRecurseSubmodules = true
[submodule "libime-jyutping"]
path = libime-jyutping
url = https://github.com/fcitx/libime-jyutping
Expand Down