Skip to content

Commit a2549ea

Browse files
authored
ci cleanup (#77)
1 parent 941131e commit a2549ea

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

.github/workflows/ci.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: [macos-14, macos-13, ubuntu-24.04]
29-
include:
30-
- { os: macos-14, arch: arm64 }
31-
- { os: macos-13, arch: x86_64 }
32-
- { os: ubuntu-24.04, arch: x86_64 }
28+
os: [macos-15, macos-13, ubuntu-24.04]
3329

3430
steps:
3531
- uses: actions/checkout@v4
@@ -54,12 +50,12 @@ jobs:
5450
- name: Install dependencies (macOS)
5551
if: startsWith(matrix.os, 'macos')
5652
run: |
57-
brew install ninja
58-
./install-deps.sh ${{ matrix.arch }}
53+
brew install ninja nlohmann-json
5954
6055
- name: Install dependencies (Ubuntu)
6156
if: startsWith(matrix.os, 'ubuntu')
6257
run: |
58+
sudo apt update
6359
sudo apt install -y ninja-build \
6460
nlohmann-json3-dev \
6561
libwebkit2gtk-4.1-dev \
@@ -69,10 +65,9 @@ jobs:
6965
- name: Configure (macOS)
7066
if: startsWith(matrix.os, 'macos')
7167
run: |
72-
PKG_CONFIG_PATH=/tmp/fcitx5/lib/pkgconfig cmake -B build -G Ninja \
68+
cmake -B build -G Ninja \
7369
-DWKWEBVIEW_PROTOCOL="fcitx" \
7470
-DWEBVIEW_WWW_PATH=".local/share/fcitx5/www" \
75-
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }} \
7671
-DCMAKE_BUILD_TYPE=Release
7772
7873
- name: Configure (Ubuntu)

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Fcitx5 webview
22

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

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

6264
## Build
6365
```sh
64-
./install-deps.sh
65-
PKG_CONFIG_PATH=/tmp/fcitx5/lib/pkgconfig cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
66+
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
6667
cmake --build build
6768
```
6869

install-deps.sh

+1-13
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,5 @@ else
66
ARCH=$1
77
fi
88

9-
# This is the same with INSTALL_PREFIX of prebuilder
10-
INSTALL_PREFIX=/tmp/fcitx5
11-
mkdir -p $INSTALL_PREFIX
12-
13-
deps=()
14-
15-
for dep in "${deps[@]}"; do
16-
file=$dep-$ARCH.tar.bz2
17-
[[ -f cache/$file ]] || wget -P cache https://github.com/fcitx-contrib/fcitx5-macos-prebuilder/releases/download/latest/$file
18-
tar xjvf cache/$file -C $INSTALL_PREFIX
19-
done
20-
219
# Portable, header-only libraries
22-
brew install nlohmann-json
10+

0 commit comments

Comments
 (0)