From 47094f8db805edb8ebaf5561687b0ae1b212e745 Mon Sep 17 00:00:00 2001 From: lovelxc <48879827+lovelxc@users.noreply.github.com> Date: Fri, 15 Nov 2024 23:14:54 +0800 Subject: [PATCH 1/2] Update build-ci.yml Add linux(debian) for workflow --- .github/workflows/build-ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index d82ae6b9a..351331e6e 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: #os: [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04] - os: [windows-latest, ubuntu-20.04] + os: [windows-latest, ubuntu-20.04, debian-12] python-version: ["3.8", "3.9", "^3"] include: - os: ubuntu-22.04 @@ -61,7 +61,7 @@ jobs: cd "$GITHUB_WORKSPACE/tests" cmd.exe //C '.\test_pe.bat' - - name: linux run tests + - name: linux(ubuntu) run tests if: contains(matrix.os, 'ubuntu') shell: 'script -q -e -c "bash {0}"' run: | @@ -81,6 +81,22 @@ jobs: cd tests && ./test_onlinux.sh fi + - name: linux(debian) run tests + if: contains(matrix.os, 'debian') + shell: bash + run: | + cd examples + rm -rf rootfs + wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip + unzip master.zip && mv rootfs-master rootfs + cd../qiling + cd ../examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip + cd ../../../../ + pip3 install -e .[RE] + + pip3 install poetry setuptools wheel + cd tests &&./test_ondebian.sh # 假设存在针对Debian的测试脚本,可根据实际情况调整 + # - name: mac run tests # if: contains(matrix.os, 'macos') # shell: bash From 5c520395bdfecf231c2985cac676579b861f1cf4 Mon Sep 17 00:00:00 2001 From: lovelxc <48879827+lovelxc@users.noreply.github.com> Date: Sat, 16 Nov 2024 21:13:38 +0800 Subject: [PATCH 2/2] Update build-ci.yml modify some description --- .github/workflows/build-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 351331e6e..f8003653c 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -95,7 +95,7 @@ jobs: pip3 install -e .[RE] pip3 install poetry setuptools wheel - cd tests &&./test_ondebian.sh # 假设存在针对Debian的测试脚本,可根据实际情况调整 + cd tests && ./test_onlinux.sh # - name: mac run tests # if: contains(matrix.os, 'macos')