Skip to content

ci cleanup #77

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
Dec 21, 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
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-13, ubuntu-24.04]
include:
- { os: macos-14, arch: arm64 }
- { os: macos-13, arch: x86_64 }
- { os: ubuntu-24.04, arch: x86_64 }
os: [macos-15, macos-13, ubuntu-24.04]

steps:
- uses: actions/checkout@v4
Expand All @@ -54,12 +50,12 @@ jobs:
- name: Install dependencies (macOS)
if: startsWith(matrix.os, 'macos')
run: |
brew install ninja
./install-deps.sh ${{ matrix.arch }}
brew install ninja nlohmann-json

- name: Install dependencies (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install -y ninja-build \
nlohmann-json3-dev \
libwebkit2gtk-4.1-dev \
Expand All @@ -69,10 +65,9 @@ jobs:
- name: Configure (macOS)
if: startsWith(matrix.os, 'macos')
run: |
PKG_CONFIG_PATH=/tmp/fcitx5/lib/pkgconfig cmake -B build -G Ninja \
cmake -B build -G Ninja \
-DWKWEBVIEW_PROTOCOL="fcitx" \
-DWEBVIEW_WWW_PATH=".local/share/fcitx5/www" \
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} \
-DCMAKE_BUILD_TYPE=Release

- name: Configure (Ubuntu)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Fcitx5 webview

Customizable candidate window for [fcitx5-macos](https://github.com/fcitx-contrib/fcitx5-macos),
Customizable candidate window for
[fcitx5-macos](https://github.com/fcitx-contrib/fcitx5-macos)
and [fcitx5-js](https://github.com/fcitx-contrib/fcitx5-js),
powered by [webview](https://github.com/webview/webview).

It can be developed independently of fcitx5.
Expand Down Expand Up @@ -61,8 +63,7 @@ add `div` to the selectors so it has higher precedence.

## Build
```sh
./install-deps.sh
PKG_CONFIG_PATH=/tmp/fcitx5/lib/pkgconfig cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build
```

Expand Down
14 changes: 1 addition & 13 deletions install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,5 @@ else
ARCH=$1
fi

# This is the same with INSTALL_PREFIX of prebuilder
INSTALL_PREFIX=/tmp/fcitx5
mkdir -p $INSTALL_PREFIX

deps=()

for dep in "${deps[@]}"; do
file=$dep-$ARCH.tar.bz2
[[ -f cache/$file ]] || wget -P cache https://github.com/fcitx-contrib/fcitx5-macos-prebuilder/releases/download/latest/$file
tar xjvf cache/$file -C $INSTALL_PREFIX
done

# Portable, header-only libraries
brew install nlohmann-json

Loading