Skip to content

Commit

Permalink
macOS: Intel runner
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha authored Jan 12, 2024
1 parent e4716dc commit b64c245
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 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 @@ -40,8 +41,7 @@ jobs:

- name: Set Artifact Name
id: set-artifact-name
run: echo "artifact_name=$(echo "windows-${{ matrix.configuration }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
shell: bash
run: echo "artifact_name=$(echo "windows-${{ matrix.configuration }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- 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 b64c245

Please sign in to comment.