Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,26 @@ jobs:
submodules: true

- name: Configure
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"

- name: Build
run: cmake --build build --parallel

- name: Verify universal binary
run: |
file build/RocketEditor.app/Contents/MacOS/RocketEditor
lipo -info build/RocketEditor.app/Contents/MacOS/RocketEditor

- name: Package
run: |
cd build
zip -r RocketEditor-macOS.zip RocketEditor.app
zip -r RocketEditor-macOS-universal.zip RocketEditor.app

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: RocketEditor-macOS
path: build/RocketEditor-macOS.zip
path: build/RocketEditor-macOS-universal.zip

build_windows:
runs-on: windows-latest
Expand Down Expand Up @@ -78,5 +83,5 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
RocketEditor-macOS.zip
RocketEditor-macOS-universal.zip
RocketEditor-Windows.zip
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(RocketEditor)

cmake_minimum_required(VERSION 3.5...3.28)

set(CMAKE_OSX_ARCHITECTURES x86_64)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")

set(RKT_EXE_NAME "RocketEditor")
set(EXAMPLE_NAME "BasicExample")
Expand Down
2 changes: 1 addition & 1 deletion external/minimp3/minimp3.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static int have_simd(void)
#define VMUL_S(x, s) vmulq_f32(x, vmovq_n_f32(s))
#define VREV(x) vcombine_f32(vget_high_f32(vrev64q_f32(x)), vget_low_f32(vrev64q_f32(x)))
typedef float32x4_t f4;
static int have_simd()
static int have_simd(void)
{ /* TODO: detect neon for !MINIMP3_ONLY_SIMD */
return 1;
}
Expand Down