Skip to content

Add macOS to GitHub workflows #1

Add macOS to GitHub workflows

Add macOS to GitHub workflows #1

Workflow file for this run

name: 🔨Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-windows:
runs-on: windows-latest
name: 🪟 Windows x86_64
strategy:
matrix:
configuration: [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: |
cmake Source -B .\Source\bin -A x64 "-DCMAKE_PREFIX_PATH=..\Externals\Qt\Qt6.5.1\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: Set Artifact Name
id: set-artifact-name
run: echo "artifact_name=$(echo "windows-${{ matrix.configuration }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- 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
name: 🐧 Linux x86_64
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 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: 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
uses: actions/upload-artifact@v3
with:
name: linux-ubuntu-22.04-binary
path: Source/build/artifacts
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: linux-ubuntu-22.04-appimage
path: dolphin-memory-engine.AppImage
build-macos-intel:
runs-on: macos-13

Check failure on line 106 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 106
name: 🍎 macOS Intel
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Dependencies
run: |
brew install qt@6 cmake
export PATH="$(brew --prefix qt@6):$PATH"
shell: bash
- name: Build
run: |
mkdir Source/build
cd Source/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 -r ./Source/build/dolphin-memory-engine.app ./Source/build/artifacts/
shell: bash
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: macOS-intel
path: Source/build/artifacts