Skip to content

Commit f0e4028

Browse files
author
zhangfuwen
committed
update action file
1 parent dcddee1 commit f0e4028

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25+
- name: Install Dependencies
26+
run: sudo apt update && sudo apt-get install -y build-essential cpio nasm cmake xorriso grub-pc-bin grub-common gcc-multilib g++-multilib
27+
2528
- name: Configure CMake
2629
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
2730
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
2831
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
2932

3033
- name: Build
3134
# Build your program with the given configuration
32-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
35+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_ASM_NASM_COMPILER=nasm -DCMAKE_ASM_NASM_FLAGS="-f elf32"
3336

3437
- name: Upload a Build Artifact
3538
uses: actions/[email protected]

0 commit comments

Comments
 (0)