99 strategy :
1010 fail-fast : false
1111 matrix :
12- os : [ubuntu-18.04, ubuntu-20.04]
12+ # os: [windows-2019, macos-10.15, ubuntu-18.04, ubuntu-20.04]
13+ os : [windows-2019, ubuntu-18.04, ubuntu-20.04]
1314 python-version : [3.6.8, 3.7.6, 3.8.5]
1415 exclude :
15- # - os: windows-2019
16- # python-version: 3.7.6
17- # - os: macos-10.15
18- # python-version: 3.7.6
1916 - os : ubuntu-20.04
20- python-version : 3.7.6
21- # - os: windows-2019
22- # python-version: 3.8.5
23- # - os: macos-10.15
24- # python-version: 3.8.5
17+ python-version : 3.7.6
2518 - os : ubuntu-20.04
2619 python-version : 3.8.5
20+ - os : windows-2019
21+ python-version : 3.6.8
22+ - os : windows-2019
23+ python-version : 3.7.6
24+ # - os: macos-10.15
25+ # python-version: 3.6.8
26+ # - os: macos-10.15
27+ # python-version: 3.7.6
2728 include :
2829 - os : ubuntu-20.04
2930 python-version : 3.6.8
@@ -37,41 +38,47 @@ jobs:
3738 with :
3839 python-version : ${{ matrix.python-version }}
3940
40- # - name: win setup MSVC
41- # if: contains(matrix.os, 'windows')
42- # uses: microsoft/setup-msbuild@v1
4341
44- # - name: win run tests
45- # if: contains(matrix.os, 'windows')
46- # shell: bash
47- # run: |
48- # powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'"
49- # powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'"
50- # powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'"
51- # powershell Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE
52- # pip3 install setuptools wheel
53- # pip3 install .
54- # cmd.exe //C 'examples\scripts\dllscollector.bat'
55- # cd $GITHUB_WORKSPACE/examples/rootfs/x86_windows/bin
56- # unzip -Pinfected wannacry.bin.zip
57- # unzip -Pinfected UselessDisk.bin.zip
58- # unzip -Pinfected GandCrab502.bin.zip
59- # unzip -Pinfected al-khaser.bin.zip
60- # unzip -Pinfected sality.dll.zip
61- # cd $GITHUB_WORKSPACE/tests
62- # cmd.exe //C '.\test_pe.bat'
63- # - name: mac run tests
64- # if: contains(matrix.os, 'macos')
65- # continue-on-error: true
66- # shell: bash
67- # run: |
68- # pip3 install setuptools wheel
69- # pip3 install .
70- # ./examples/scripts/dylibcollector.sh
71- # cd $GITHUB_WORKSPACE/examples/rootfs/x8664_macos/kext
72- # unzip -Pinfected SuperRootkit.kext.zip
73- # cd $GITHUB_WORKSPACE/tests
74- # ./test_macho.sh
42+ - name : Win setup MSVC
43+ if : contains(matrix.os, 'windows')
44+ uses : microsoft/setup-msbuild@v1
45+
46+
47+ - name : Win configure Pagefile
48+ if : contains(matrix.os, 'windows')
49+ 50+ with :
51+ minimum-size : 16GB
52+ maximum-size : 16GB
53+ disk-root : " C:"
54+
55+
56+ - name : win run tests
57+ if : contains(matrix.os, 'windows')
58+ shell : bash
59+ run : |
60+ powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'"
61+ powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'"
62+ powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'"
63+ powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Add-MpPreference -ExclusionPath $GITHUB_WORKSPACE'"
64+ pip3 install setuptools wheel
65+ pip3 install .
66+ cd examples
67+ rm -rf rootfs
68+ curl -LJk -o master.zip https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip && unzip master.zip
69+ mv rootfs-master rootfs
70+ cd $GITHUB_WORKSPACE
71+ cmd.exe //C 'examples\scripts\dllscollector.bat'
72+ cd $GITHUB_WORKSPACE/examples/rootfs/x86_windows/bin
73+ unzip -Pinfected wannacry.bin.zip
74+ unzip -Pinfected UselessDisk.bin.zip
75+ unzip -Pinfected GandCrab502.bin.zip
76+ unzip -Pinfected al-khaser.bin.zip
77+ unzip -Pinfected sality.dll.zip
78+ cd $GITHUB_WORKSPACE/tests
79+ cmd.exe //C '.\test_pe.bat'
80+
81+
7582 - name : linux run tests
7683 if : contains(matrix.os, 'ubuntu')
7784 shell : ' script -q -e -c "bash {0}"'
@@ -80,13 +87,38 @@ jobs:
8087 pip3 install setuptools wheel flake8
8188 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
8289 pip3 install .
83- cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
90+ cd examples
91+ rm -rf rootfs
92+ wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
93+ unzip master.zip && mv rootfs-master rootfs
94+ cd rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
8495 cd ../../../../tests && ./test_elf.sh
8596 elif [ ${{ matrix.os }} == 'ubuntu-20.04' ]; then
97+ cd examples
98+ rm -rf rootfs
99+ wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
100+ unzip master.zip && mv rootfs-master rootfs
86101 docker run -it --rm -v ${GITHUB_WORKSPACE}:/qiling qilingframework/qiling:dev bash -c "pip3 install . && cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip && cd ../../../../tests && ./test_elf.sh"
87102 else
88103 pip3 install setuptools wheel
89104 pip3 install .
90- cd examples/rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
105+ cd examples
106+ rm -rf rootfs
107+ wget https://github.com/qilingframework/rootfs/archive/refs/heads/master.zip
108+ unzip master.zip && mv rootfs-master rootfs
109+ cd rootfs/x86_linux/kernel && unzip -P infected m0hamed_rootkit.ko.zip
91110 cd ../../../../tests && ./test_elf.sh
92111 fi
112+
113+
114+ # - name: mac run tests
115+ # if: contains(matrix.os, 'macos')
116+ # shell: bash
117+ # run: |
118+ # pip3 install setuptools wheel
119+ # pip3 install .
120+ # ./examples/scripts/dylibcollector.sh
121+ # cd $GITHUB_WORKSPACE/examples/rootfs/x8664_macos/kext
122+ # unzip -Pinfected SuperRootkit.kext.zip
123+ # cd $GITHUB_WORKSPACE/tests
124+ # ./test_macho.sh
0 commit comments