Skip to content

Commit b1e938c

Browse files
CI: build shellcodes only in ubuntu.
1 parent 0e89c51 commit b1e938c

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ jobs:
5353
run: |
5454
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
5555
56-
- name: Install dependencies (macOS)
57-
if: ${{ matrix.os == 'macos-latest' }}
58-
run: |
59-
brew install binutils
60-
echo 'export PATH="/opt/homebrew/opt/binutils/bin:$PATH"' >> /Users/runner/.bash_profile
61-
62-
6356
- name: Configure Compiler
6457
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' }}
6558
run: |
@@ -75,13 +68,27 @@ jobs:
7568
-S ${{ github.workspace }}
7669
7770
- name: Build Patcher and other tools
71+
if: ${{ matrix.os != 'ubuntu-latest' || matrix.os != 'ubuntu-24.04-arm' }}
72+
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release --target DualBootKernelPatcher DualBootPatchRemover HDRTool
73+
74+
- name: Build ASM Codes
75+
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' }}
7876
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release
7977

80-
- name: Upload Artifact
78+
- name: Upload Tools
8179
uses: actions/upload-artifact@v4
8280
with:
83-
name: DualBootKernelPatcher-${{ matrix.os }}-${{ matrix.arch }}
81+
name: Tools-${{ matrix.os }}-${{ matrix.arch }}
8482
path: |
8583
${{ steps.strings.outputs.build-output-dir }}/**/DualBootKernelPatcher*
8684
${{ steps.strings.outputs.build-output-dir }}/**/DualBootKernelRemover*
8785
${{ steps.strings.outputs.build-output-dir }}/**/HDRTool*
86+
87+
- name: Upload ASM Bins
88+
uses: actions/upload-artifact@v4
89+
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' }}
90+
with:
91+
name: Bins-${{ matrix.os }}-${{ matrix.arch }}
92+
path: |
93+
${{ steps.strings.outputs.build-output-dir }}/ShellCode/*
94+

0 commit comments

Comments
 (0)