Skip to content
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b597e09
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
f8ac386
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
0e149a3
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
d276803
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
8d6027a
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
1f1fb7c
debug
thanasis457 Jul 11, 2025
51d04d5
debug
thanasis457 Jul 11, 2025
e9697e1
debug
thanasis457 Jul 11, 2025
c107cce
debug
thanasis457 Jul 11, 2025
347663a
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
e114e11
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
f895a4b
debug
thanasis457 Jul 11, 2025
ca503f0
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
ad933a4
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
6b5b578
Works
thanasis457 Jul 11, 2025
28d149c
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
fa688d1
Quiet zip
thanasis457 Jul 11, 2025
df7effb
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
9c3a2f7
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
73119a4
Update CMakeLists.txt
thanasis457 Jul 11, 2025
877ae5d
Update CMakeLists.txt
thanasis457 Jul 11, 2025
197cacd
Update CMakeLists.txt
thanasis457 Jul 11, 2025
6fc8c16
Update CMakeLists.txt
thanasis457 Jul 11, 2025
1e43403
Update CMakeLists.txt
thanasis457 Jul 11, 2025
dec6bbe
Update CMakeLists.txt
thanasis457 Jul 11, 2025
70e144d
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
b3e7077
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
56ecf77
Update CMakeLists.txt
thanasis457 Jul 11, 2025
d912624
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
34ef5e4
Update CMakeLists.txt
thanasis457 Jul 11, 2025
444a932
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
87d9ece
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
580f0b2
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
461eb4d
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
cc51f5c
Update CMakeLists.txt
thanasis457 Jul 11, 2025
e8d2a89
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
1b9caf8
Update CMakeLists.txt
thanasis457 Jul 11, 2025
343ac22
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
ced6112
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
35926c5
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
d79e3c9
Zip fix
thanasis457 Jul 11, 2025
1c101c4
Update macos_build_m1.yml
thanasis457 Jul 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 86 additions & 6 deletions .github/workflows/macos_build_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: MacOS NodeJS-CMake

env:
DMG_OUTPUT: ${{github.workspace}}${{ '/out/make/zip/darwin/arm64'}}
DMG_OUTPUT_INTEL: ${{github.workspace}}${{ '/out/make/zip/darwin/x64'}}
on:
push:
branches: [ "master" ]
Expand All @@ -11,21 +13,85 @@ on:
workflow_dispatch:

jobs:
build:
M1Build:

runs-on: macos-latest

strategy:
matrix:
node-version: [18.x]
node-version: [24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.16.x'
cmake-version: '4.0.x'

- name: Show Swift version and architecture
run: |
swiftc --version
file $(which swiftc)
arch

- name: Use cmake
run: cmake --version

- name: Checkout Action
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install nodejs dependencies
run: npm i

- name: Build
run: npm run make

- name: Self-sign - Avoid Gatekeeper DMG corrupted warning
run: |
echo "Unzipping"
unzip -q ${{ env.DMG_OUTPUT }}/Playful*.zip -d ${{ env.DMG_OUTPUT }}
echo "Removing zip"
rm -rf ${{ env.DMG_OUTPUT }}/Playful*.zip
echo "Codesigning"
codesign --force --deep -s - ${{ env.DMG_OUTPUT }}/Playful.app
echo "Zipping"
cd ${{ env.DMG_OUTPUT }} && zip -q -r -y Playful_apple_silicon.zip Playful.app
echo "Removing .app"
rm -rf ${{ env.DMG_OUTPUT }}/Playful.app

- name: Upload Build File
uses: actions/upload-artifact@v4
with:
name: Playful-darwin-arm64
path: ${{ env.DMG_OUTPUT }}/Playful_apple_silicon.zip

IntelBuild:

runs-on: macos-13

strategy:
matrix:
node-version: [24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '4.0.x'

- name: Show Swift version and architecture
run: |
swiftc --version
file $(which swiftc)
arch

- name: Use cmake
run: cmake --version

Expand All @@ -43,9 +109,23 @@ jobs:

- name: Build
run: npm run make

- name: Self-sign - Avoid Gatekeeper DMG corrupted warning
run: |
echo "Unzipping"
cd ./out/make/zip/darwin/ && ls
unzip -q ${{ env.DMG_OUTPUT_INTEL }}/Playful*.zip -d ${{ env.DMG_OUTPUT_INTEL }}
echo "Removing zip"
rm -rf ${{ env.DMG_OUTPUT_INTEL }}/Playful*.zip
echo "Codesigning"
codesign --force --deep -s - ${{ env.DMG_OUTPUT_INTEL }}/Playful.app
echo "Zipping"
cd ${{ env.DMG_OUTPUT_INTEL }} && zip -q -r -y Playful_intel.zip Playful.app
echo "Removing .app"
rm -rf ${{ env.DMG_OUTPUT_INTEL }}/Playful.app

- name: Upload Build File
uses: actions/upload-artifact@v4
with:
name: Playful-darwin-amd64
path: /Users/runner/work/Playful/Playful/out/make
name: Playful-darwin-intel
path: ${{ env.DMG_OUTPUT_INTEL }}/Playful_intel.zip
Loading