From d237420c7e7ccace42938c09252fe1d9bcc96730 Mon Sep 17 00:00:00 2001
From: RDW <duckwhale@mail.ru>
Date: Sat, 3 Feb 2024 11:41:19 +0100
Subject: [PATCH] CI: Enable build workflows for M1-based macOS runners

This should help make sure the platform is equally supported.
---
 .github/workflows/ci-mac.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml
index 84cd52b8..d6500c02 100644
--- a/.github/workflows/ci-mac.yml
+++ b/.github/workflows/ci-mac.yml
@@ -22,7 +22,15 @@ jobs:
   build:
     if: github.event.pull_request.draft == false
     name: Build for macOS
-    runs-on: macos-latest
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [macos-latest, macos-14]
+        include:
+          - os: macos-latest
+            arch: x64
+          - os: macos-14
+            arch: M1
 
     steps:
       - name: Check out Git repository