From 51dbe0d9eb1dd5dfcf5afc531918f4029dbc16d5 Mon Sep 17 00:00:00 2001 From: zonble Date: Wed, 25 Sep 2024 12:21:23 +0800 Subject: [PATCH 1/4] Adds CI for Fedora. --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2759ea2..72d4e23 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -100,3 +100,26 @@ jobs: cd /home/xatier/fcitx5-mcbopomofo/distro/archlinux/ sudo pacman -Syy makepkg -s --noconfirm + + build_fedora: + runs-on: ubuntu-latest + container: fedora:latest + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + dnf install gcc g++ + dnf install + dnf install fcitx5 fcitx5-configtool fcitx5-devel \ + cmake extra-cmake-modules gettext fmt-devel \ + libicu-devel json-c-devel + - name: Build + run: | + mkdir -p build + cd build + cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug + make + - name: Test + run: | + cd build + ctest --output-on-failure From bc5be143b919b06e886d00bce04e33cb82326683 Mon Sep 17 00:00:00 2001 From: zonble Date: Wed, 25 Sep 2024 12:24:09 +0800 Subject: [PATCH 2/4] Updates CI settings. --- .github/workflows/ci.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 72d4e23..ead9994 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -108,9 +108,8 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: | - dnf install gcc g++ - dnf install - dnf install fcitx5 fcitx5-configtool fcitx5-devel \ + dnf -y install gcc g++ + dnf -y install fcitx5 fcitx5-configtool fcitx5-devel \ cmake extra-cmake-modules gettext fmt-devel \ libicu-devel json-c-devel - name: Build From 7918ebe667fb830c0696c8a798e60be88fa0f4b9 Mon Sep 17 00:00:00 2001 From: zonble Date: Wed, 25 Sep 2024 12:28:50 +0800 Subject: [PATCH 3/4] Runs CI on various versions of Fedora. --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ead9994..9848a7d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -102,8 +102,12 @@ jobs: makepkg -s --noconfirm build_fedora: + strategy: + fail-fast: false + matrix: + os: ["fedora:42", "fedora:41", "fedora:40", "fedora:39"] runs-on: ubuntu-latest - container: fedora:latest + container: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - name: Install dependencies From 6e96ab4bd6fa9658e4c8262f8190dd3cf878c183 Mon Sep 17 00:00:00 2001 From: zonble Date: Wed, 25 Sep 2024 12:35:35 +0800 Subject: [PATCH 4/4] Tunes the order of the images in CI. --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9848a7d..753afad 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,9 +9,9 @@ jobs: matrix: os: [ - "ubuntu:22.04", - "ubuntu:24.04", "ubuntu:24.10", + "ubuntu:24.04", + "ubuntu:22.04", "debian:12", "linuxmintd/mint22-amd64", "linuxmintd/mint21-amd64",