Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed May 9, 2024
1 parent 98a4e41 commit 3a126e1
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:

env:
VNOTE_VER: 3.17.0
CMAKE_VER: 3.24.3

jobs:
build-linux:
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
- name: Install Dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfcitx5-qt-dev tree
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfcitx5-qt-dev fcitx-libs-dev extra-cmake-modules libxkbcommon-dev tree
- name: Cache Qt
id: cache-qt
Expand All @@ -75,6 +76,16 @@ jobs:
run: mkdir build
working-directory: ${{runner.workspace}}

- name: Compile fcitxqt5
run: |
git clone https://github.com/fcitx/fcitx-qt5
cd fcitx-qt5
mkdir build && cd build
cmake -DENABLE_QT5=OFF -DENABLE_QT6=ON ..
make -j2
make install
working-directory: ${{runner.workspace}}/build

- name: Compile qt6ct
run: |
git clone https://github.com/trialuser02/qt6ct qt6ct.git
Expand All @@ -91,14 +102,16 @@ jobs:
working-directory: ${{runner.workspace}}/build

- name: Build Project
run: cmake --build . --target bundle
run: |
cmake --build . --target pack
mv VNote*.AppImage vnote-${{env.VNOTE_VER}}-x64.AppImage
working-directory: ${{runner.workspace}}/build

- name: Archive Artifacts
uses: actions/upload-artifact@v2
with:
name: vnote-linux-x64_v${{env.VNOTE_VER}}
path: ${{runner.workspace}}/build/vnote-linux-x64_v${{env.VNOTE_VER}}.AppImage
name: VNote-${{env.VNOTE_VER}}-x64
path: ${{runner.workspace}}/build/vnote-${{env.VNOTE_VER}}-x64.AppImage

- name: Update Tag
if: github.ref == 'refs/heads/master'
Expand All @@ -111,7 +124,7 @@ jobs:
uses: johnwbyrd/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{runner.workspace}}/build/vnote-linux-x64.AppImage
files: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-x64
release: Continuous Build
tag: continuous-build

Expand All @@ -120,7 +133,7 @@ jobs:
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ${{runner.workspace}}/build/vnote-linux-x64_v${{env.VNOTE_VER}}.AppImage
artifacts: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-x64
commit: master
tag: v${{env.VNOTE_VER}}
allowUpdates: true
Expand Down

0 comments on commit 3a126e1

Please sign in to comment.