mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
Update ci.yml
This commit is contained in:
parent
c65dfc16a5
commit
45d4cad03d
1 changed files with 51 additions and 41 deletions
92
.github/workflows/ci.yml
vendored
92
.github/workflows/ci.yml
vendored
|
@ -22,51 +22,61 @@ jobs:
|
||||||
build_type: win32
|
build_type: win32
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Submodules
|
||||||
|
if: matrix.build_type != 'flatpak'
|
||||||
|
run: git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Setup Submodules
|
- name: Setup Packages for Flatpak
|
||||||
if: matrix.build_type != 'flatpak'
|
if: matrix.os == 'ubuntu-latest' && matrix.build_type == 'flatpak'
|
||||||
run: git submodule update --init --recursive
|
run: |
|
||||||
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
sudo flatpak install org.kde.Sdk//5.15 org.kde.Platform//5.15 -y
|
||||||
|
sudo dnf install libusb1-devel cmake git gcc-c++ libXext-devel libgudev qt6-qtbase-devel systemd-devel openal-soft-devel libevdev-devel libao-devel SOIL-devel libXrandr-devel pulseaudio-libs-devel bluez-libs-devel p7zip SDL2-devel -y
|
||||||
|
|
||||||
- name: Setup Packages
|
- name: Setup Packages for AppImage
|
||||||
if: matrix.os == 'ubuntu-latest' && matrix.build_type == 'flatpak'
|
if: matrix.os == 'ubuntu-latest' && matrix.build_type == 'AppImage'
|
||||||
run: |
|
run: sudo apt install ninja-build desktop-file-utils git cmake ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libevdev-dev libusb-1.0-0-dev libxrandr-dev libxi-dev libpangocairo-1.0-0 qt6-base-private-dev libqt6svg6-dev libbluetooth-dev libasound2-dev libpulse-dev libgl1-mesa-dev libcurl4-openssl-dev
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
||||||
sudo flatpak install org.kde.Sdk//5.15 org.kde.Platform//5.15 -y
|
|
||||||
sudo dnf install libusb1-devel cmake git gcc-c++ libXext-devel libgudev qt6-qtbase-devel systemd-devel openal-soft-devel libevdev-devel libao-devel SOIL-devel libXrandr-devel pulseaudio-libs-devel bluez-libs-devel p7zip SDL2-devel -y
|
|
||||||
|
|
||||||
- name: Setup Packages
|
- name: Setup Packages for macOS
|
||||||
if: matrix.os == 'ubuntu-latest' && matrix.build_type == 'AppImage'
|
if: matrix.os == 'macos-13'
|
||||||
run: sudo apt install ninja-build desktop-file-utils git cmake ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libevdev-dev libusb-1.0-0-dev libxrandr-dev libxi-dev libpangocairo-1.0-0 qt6-base-private-dev libqt6svg6-dev libbluetooth-dev libasound2-dev libpulse-dev libgl1-mesa-dev libcurl4-openssl-dev
|
run: brew install qt6 molten-vk p7zip pkgconfig cmake ninja
|
||||||
|
|
||||||
- name: Setup Packages
|
- name: Setup MSBuild
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'windows-latest'
|
||||||
run: brew install qt6 molten-vk p7zip pkgconfig cmake ninja
|
uses: microsoft/setup-msbuild@v1.0.2
|
||||||
|
with:
|
||||||
|
vs-version: '16.6.2'
|
||||||
|
|
||||||
- name: Setup MSBuild
|
- name: Build Flatpak
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.build_type == 'flatpak'
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
run: flatpak-builder --user --install --force-clean build-dir Distribution/flatpak.yml
|
||||||
with:
|
|
||||||
vs-version: '16.6.2'
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build AppImage
|
||||||
run: |
|
if: matrix.build_type == 'AppImage'
|
||||||
if [ "${{ matrix.build_type }}" == "flatpak" ]; then
|
run: |
|
||||||
flatpak-builder --user --install --force-clean build-dir Distribution/flatpak.yml
|
mkdir -p build && cd build
|
||||||
elif [ "${{ matrix.build_type }}" == "AppImage" ]; then
|
cmake .. -G Ninja -DLINUX_LOCAL_DEV=true -DCMAKE_INSTALL_PREFIX=/usr -DDISTRIBUTOR="Mario Party Netplay"
|
||||||
mkdir -p build && cd build && cmake .. -G Ninja -DLINUX_LOCAL_DEV=true -DCMAKE_INSTALL_PREFIX=/usr -DDISTRIBUTOR="Mario Party Netplay" && ninja -j8
|
ninja -j8
|
||||||
elif [ "${{ matrix.build_type }}" == "darwin" ]; then
|
|
||||||
mkdir -p build && cd build && cmake .. -G Ninja -DCMAKE_CXX_FLAGS="-Xclang -fcolor-diagnostics" -DCMAKE_PREFIX_PATH=$(brew --prefix qt6) -DDISTRIBUTOR="Mario Party Netplay" && ninja -j8
|
|
||||||
elif [ "${{ matrix.build_type }}" == "win32" ]; then
|
|
||||||
msbuild "D:\a\Dolphin-MPN\Dolphin-MPN\Source\dolphin-emu.sln" /verbosity:minimal /property:Configuration=Release /property:Platform=x64
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload Build Artifact
|
- name: Build macOS
|
||||||
uses: actions/upload-artifact@v4
|
if: matrix.build_type == 'darwin'
|
||||||
with:
|
run: |
|
||||||
name: DolphinMPN-${{ matrix.build_type }}
|
mkdir -p build && cd build
|
||||||
path: |
|
cmake .. -G Ninja -DCMAKE_CXX_FLAGS="-Xclang -fcolor-diagnostics" -DCMAKE_PREFIX_PATH=$(brew --prefix qt6) -DDISTRIBUTOR="Mario Party Netplay"
|
||||||
${{ matrix.build_type == 'macOS' && github.workspace }}/build/Binaries/
|
ninja -j8
|
||||||
${{ matrix.build_type == 'win32' && github.workspace }}/Binary/x64/
|
|
||||||
${{ matrix.build_type == 'AppImage' && github.workspace }}/root/
|
- name: Build Windows
|
||||||
${{ matrix.build_type == 'flatpak' && github.workspace }}/Distribution/OUT/
|
if: matrix.build_type == 'win32'
|
||||||
|
run: msbuild "D:\a\Dolphin-MPN\Dolphin-MPN\Source\dolphin-emu.sln" /verbosity:minimal /property:Configuration=Release /property:Platform=x64
|
||||||
|
|
||||||
|
- name: Upload Build Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: DolphinMPN-${{ matrix.build_type }}
|
||||||
|
path: |
|
||||||
|
${{ matrix.build_type == 'darwin' && github.workspace }}/build/Binaries/
|
||||||
|
${{ matrix.build_type == 'win32' && github.workspace }}/Binary/x64/
|
||||||
|
${{ matrix.build_type == 'AppImage' && github.workspace }}/root/
|
||||||
|
${{ matrix.build_type == 'flatpak' && github.workspace }}/Distribution/OUT/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue