From 4b3a37f5dba1b7504a1a09fbd4c9d6ae4689396c Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 1 Jan 2025 20:22:21 -0600 Subject: [PATCH] Github Actions for macOS builds --- .github/workflows/build-macos.yaml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-macos.yaml diff --git a/.github/workflows/build-macos.yaml b/.github/workflows/build-macos.yaml new file mode 100644 index 0000000000..41bf770f5d --- /dev/null +++ b/.github/workflows/build-macos.yaml @@ -0,0 +1,33 @@ +name: Build for macOS + +on: workflow_dispatch + +jobs: + build: + strategy: + matrix: + runs-on: [macos-15-arm64, macos-15] + + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Cache NodeJS modules + uses: actions/cache@v4 + with: + path: | + ./node_modules + ./app/node_modules + key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }}-${{ hashFiles('app/package-lock.json') }} + + - name: Install Dependencies + run: npm ci + + - name: Setup Keychain + run: npm run ci-setup-mac-keychain + + - name: Lint + run: npm run lint + + - name: Build + run: DEBUG=electron-packager,electron-osx-sign npm run build