Skip to content

Merge pull request #195 from aldelaro5/ci-artifact-names #1

Merge pull request #195 from aldelaro5/ci-artifact-names

Merge pull request #195 from aldelaro5/ci-artifact-names #1

Workflow file for this run

name: 🔨 Build (TAG)
on:
push:
tags:
- '*'
jobs:
clang-format-check:
runs-on: ubuntu-24.04
name: Clang-Format Check (TAG)
steps:
- uses: actions/checkout@v4
- uses: jidicula/[email protected]
with:
clang-format-version: '19'
check-path: Source
build-windows:
runs-on: windows-latest
name: 🪟 Windows x86_64 (TAG)
strategy:
matrix:
configuration: [Release]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v2
- name: Initialize submodules
run: git submodule update --init
shell: powershell
- name: Set APP_VERSION for tags
run: echo "APP_VERSION=${{ github.ref_name }}" >> $env:GITHUB_ENV
shell: powershell
- name: Build
run: |
cmake Source -B .\Source\bin -A x64 "-DCMAKE_PREFIX_PATH=..\Externals\Qt\Qt6.8.2\x64"
cmake --build .\Source\bin --config ${{ matrix.configuration }} --parallel
shell: powershell
- name: Copy LICENSE, README
run: |
copy .\LICENSE .\Source\bin\${{ matrix.configuration }}
copy .\README.md .\Source\bin\${{ matrix.configuration }}
shell: powershell
- name: Publish Artifacts
uses: actions/upload-artifact@v4
with:
name: dolphin-memory-engine-${{ github.ref_name }}-windows-amd64
path: Source\bin\${{ matrix.configuration }}
build-linux:
runs-on: ubuntu-22.04
name: 🐧 Linux x86_64 (TAG)
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt install cmake libevdev-dev qt6-base-private-dev libqt6svg6 libqt6svg6-dev libgl1-mesa-dev libfuse2
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: Set APP_VERSION for tags
run: echo "APP_VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
- name: Build
run: |
cmake Source -B Source/build -DCMAKE_BUILD_TYPE=Release
cmake --build Source/build --parallel
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: Package AppImage
run: |
.github/assets/appimage.sh
shell: bash
- name: Publish Artifacts (Binary)
uses: actions/upload-artifact@v4
with:
name: dolphin-memory-engine-${{ github.ref_name }}-linux-ubuntu-22.04-binary
path: Source/build/artifacts
- name: Publish Artifacts (AppImage)
uses: actions/upload-artifact@v4
with:
name: dolphin-memory-engine-${{ github.ref_name }}-linux-ubuntu-22.04-appimage
path: dolphin-memory-engine.AppImage
build-macos-intel:
runs-on: macos-13
name: 🍎 macOS Intel (TAG)
steps:
- name: Checkout code
uses: actions/checkout@v4
# Current Runner has cmake we want by default; Omitting for now but restore if they stop bundling it
# - name: Install Dependencies
# run: |
# brew install --formula cmake
# shell: bash
- name: Initialize submodules
run: git submodule update --init
- name: Set APP_VERSION for tags
run: echo "APP_VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
- name: Build
run: |
mkdir Source/build
cd Source/build
cmake .. -DCMAKE_PREFIX_PATH="$(realpath ../../Externals/Qt-macOS)"
make
echo -e "\n" | ../../Tools/MacDeploy.sh
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 ./Tools/MacSetup.sh ./Source/build/artifacts/
cp ./Source/build/dolphin-memory-engine.dmg ./Source/build/artifacts/
shell: bash
- name: Publish Artifacts
uses: actions/upload-artifact@v4
with:
name: dolphin-memory-engine-${{ github.ref_name }}-macOS-intel
path: Source/build/artifacts