Upgrade to Qt 6.5 #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
configuration: [Debug] # [Debug, Release] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Initialize submodules | |
run: git submodule update --init | |
shell: powershell | |
- name: Build | |
run: | | |
msbuild Source\Dolphin-memory-engine.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=x64 /p:Verbosity=normal | |
shell: powershell | |
- name: Copy LICENSE, README | |
run: | | |
copy .\LICENSE .\Source\bin\${{ matrix.configuration }} | |
copy .\README.md .\Source\bin\${{ matrix.configuration }} | |
shell: powershell | |
- name: Set Artifact Name | |
id: set-artifact-name | |
run: echo "artifact_name=$(echo "windows-${{ matrix.configuration }}-build" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Publish Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.set-artifact-name.outputs.artifact_name }} | |
path: Source\bin\${{ matrix.configuration }} | |
build-linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install build-essential 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 | |
shell: bash | |
- name: Install GCC 10 and G++ 10 | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
sudo apt-get update | |
sudo apt-get install g++-10 gcc-10 -y | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 90 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90 | |
- name: Build | |
run: | | |
cd Source | |
mkdir build | |
cd build | |
cmake .. | |
make | |
shell: bash | |
- name: Copy LICENSE, README, Prepare Artifacts | |
run: | | |
mkdir Source/build/artifacts | |
cp ./README.md ./Source/build/artifacts/ | |
cp ./LICENSE ./Source/build/artifacts/ | |
cp ./Source/build/Dolphin-memory-engine ./Source/build/artifacts/ | |
shell: bash | |
- name: Publish Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux-ubuntu-22.04-build | |
path: Source/build/artifacts |