Fix CI build (#414)

* remove git from CI test

* fix build
This commit is contained in:
Cyano Hao 2024-05-09 16:14:47 +08:00 committed by GitHub
parent eca9d2ecbf
commit 2fc9b51053
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 9 additions and 21 deletions

View File

@ -369,7 +369,7 @@ jobs:
macos_x86_64: macos_x86_64:
name: macOS x86_64 name: macOS x86_64
runs-on: macos-latest runs-on: macos-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -10,7 +10,6 @@ jobs:
matrix: matrix:
lua_addon: ["y", "n"] lua_addon: ["y", "n"]
sdcc: ["y", "n"] sdcc: ["y", "n"]
vcs: ["y", "n"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -28,8 +27,8 @@ jobs:
- name: Build - name: Build
run: | run: |
name="redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}-${{ matrix.vcs }}" name="redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}"
xmake f --qt=/usr --prefix=/ --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }} --vcs=${{ matrix.vcs }} xmake f --qt=/usr --prefix=/ --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }}
xmake b xmake b
xmake i -o "pkg/$name" xmake i -o "pkg/$name"
tar -cf "pkg/$name.tar" -C pkg "$name" tar -cf "pkg/$name.tar" -C pkg "$name"
@ -37,7 +36,7 @@ jobs:
- name: Upload - name: Upload
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: Ubuntu 22.04 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}, vcs=${{ matrix.vcs }} name: Ubuntu 22.04 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}
path: pkg/*.tar path: pkg/*.tar
windows_msvc_x64: windows_msvc_x64:
@ -47,7 +46,6 @@ jobs:
matrix: matrix:
lua_addon: ["y", "n"] lua_addon: ["y", "n"]
sdcc: ["y", "n"] sdcc: ["y", "n"]
vcs: ["y", "n"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -69,8 +67,8 @@ jobs:
- name: Build - name: Build
run: | run: |
$install_dir = "pkg/redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}-${{ matrix.vcs }}" $install_dir = "pkg/redpanda-cpp-${{ matrix.lua_addon }}-${{ matrix.sdcc }}"
xmake f -p windows -a x64 --qt="${env:QT_ROOT_DIR}" --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }} --vcs=${{ matrix.vcs }} xmake f -p windows -a x64 --qt="${env:QT_ROOT_DIR}" --lua-addon=${{ matrix.lua_addon }} --sdcc=${{ matrix.sdcc }}
xmake b xmake b
xmake i -o $install_dir xmake i -o $install_dir
mv $install_dir/bin/* $install_dir/ mv $install_dir/bin/* $install_dir/
@ -80,5 +78,5 @@ jobs:
- name: Upload - name: Upload
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: Windows MSVC x64 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}, vcs=${{ matrix.vcs }} name: Windows MSVC x64 - lua-addon=${{ matrix.lua_addon }}, sdcc=${{ matrix.sdcc }}
path: pkg/* path: pkg/*

View File

@ -612,10 +612,7 @@ RESOURCES += colorscheme_files
macos: { macos: {
# Add needed executables into the main app bundle # Add needed executables into the main app bundle
bundled_executable.files = \ bundled_executable.files = $$OUT_PWD/../tools/consolepauser/consolepauser
$$OUT_PWD/../tools/astyle/astyle \
$$OUT_PWD/../tools/consolepauser/consolepauser \
$$OUT_PWD/../tools/redpanda-git-askpass/redpanda-git-askpass.app/Contents/MacOS/redpanda-git-askpass
bundled_executable.path = Contents/MacOS bundled_executable.path = Contents/MacOS
# Also bundled templates # Also bundled templates

View File

@ -144,6 +144,7 @@ target("RedPandaIDE")
"settingsdialog/executorgeneralwidget", "settingsdialog/executorgeneralwidget",
"settingsdialog/executorproblemsetwidget", "settingsdialog/executorproblemsetwidget",
"settingsdialog/formattergeneralwidget", "settingsdialog/formattergeneralwidget",
"settingsdialog/formatterpathwidget",
"settingsdialog/languageasmgenerationwidget", "settingsdialog/languageasmgenerationwidget",
"settingsdialog/projectcompileparamaterswidget", "settingsdialog/projectcompileparamaterswidget",
"settingsdialog/projectcompilerwidget", "settingsdialog/projectcompilerwidget",
@ -188,9 +189,6 @@ target("RedPandaIDE")
add_ui_classes( add_ui_classes(
"settingsdialog/environmentfileassociationwidget", "settingsdialog/environmentfileassociationwidget",
"settingsdialog/projectversioninfowidget") "settingsdialog/projectversioninfowidget")
else
add_ui_classes(
"settingsdialog/formatterpathwidget")
end end
if has_config("lua-addon") then if has_config("lua-addon") then

View File

@ -25,8 +25,6 @@ make LINUX_STATIC_IME_PLUGIN=ON -j$(nproc)
# install RedPanda C++ to AppDir # install RedPanda C++ to AppDir
make INSTALL_ROOT=/RedPandaIDE.AppDir install make INSTALL_ROOT=/RedPandaIDE.AppDir install
# remove unnecessary, huge files
rm /RedPandaIDE.AppDir/usr/libexec/RedPandaCPP/redpanda-git-askpass
# setup AppImage resource # setup AppImage resource
cd /RedPandaIDE.AppDir cd /RedPandaIDE.AppDir

View File

@ -12,5 +12,3 @@ make LINUX_STATIC_IME_PLUGIN=ON -j$(nproc)
# install RedPanda C++ to AppDir # install RedPanda C++ to AppDir
make INSTALL_ROOT=/out install make INSTALL_ROOT=/out install
# remove unnecessary, huge files
rm /out/usr/libexec/RedPandaCPP/redpanda-git-askpass

View File

@ -189,7 +189,6 @@ if has_config("lua-addon") then
end end
includes("libs/qsynedit") includes("libs/qsynedit")
includes("libs/redpanda_qt_utils") includes("libs/redpanda_qt_utils")
includes("tools/astyle")
includes("tools/consolepauser") includes("tools/consolepauser")
if has_config("vcs") then if has_config("vcs") then
if is_os("windows") then if is_os("windows") then