Skip to content

Commit

Permalink
Add macOS to GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
campital committed Jan 18, 2024
1 parent 4e1f8bb commit 2e9422b
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: 🔨Build

on:
push:
Expand All @@ -11,6 +11,7 @@ on:
jobs:
build-windows:
runs-on: windows-latest
name: 🪟 Windows x86_64
strategy:
matrix:
configuration: [Release]
Expand Down Expand Up @@ -41,7 +42,6 @@ jobs:
- name: Set Artifact Name
id: set-artifact-name
run: echo "artifact_name=$(echo "windows-${{ matrix.configuration }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
shell: bash

- name: Publish Artifacts
uses: actions/upload-artifact@v3
Expand All @@ -51,6 +51,7 @@ jobs:

build-linux:
runs-on: ubuntu-22.04
name: 🐧 Linux x86_64

steps:
- name: Checkout code
Expand Down Expand Up @@ -100,3 +101,39 @@ jobs:
with:
name: linux-ubuntu-22.04-appimage
path: dolphin-memory-engine.AppImage

build-macos-intel:
runs-on: macos-13
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

0 comments on commit 2e9422b

Please sign in to comment.