Skip to content

Commit 49c0359

Browse files
committed
updated ci
1 parent f8c188a commit 49c0359

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,8 @@ jobs:
7676
if (Select-String -Path test.log -Pattern '^[0-9_]+.[^1]$') { throw 'Test failed' }
7777
Write-Host "split_part tests completed successfully."
7878
79-
- name: Compile and test on macOS (AMD64)
80-
if: matrix.os == 'macos-latest' && matrix.arch == 'amd64'
81-
run: |
82-
make compile-macos-x86
83-
make test-all
84-
85-
- name: Compile and test on macOS (ARM64)
86-
if: matrix.os == 'macos-latest' && matrix.arch == 'arm64'
79+
- name: Compile and test on macOS
80+
if: matrix.os == 'macos-latest'
8781
run: |
88-
make compile-macos-arm64
82+
make compile-macos-universal
8983
make test-all

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ compile-macos-arm64:
4040
gcc -O2 -fPIC -dynamiclib -Isrc -target arm64-apple-macos12 src/regexp/*.c -o dist/regexp_arm64.dylib
4141
gcc -O2 -fPIC -dynamiclib -Isrc -target arm64-apple-macos12 src/split_part/*.c -o dist/split_part_arm64.dylib
4242

43+
compile-macos-universal: compile-macos-x86 compile-macos-arm64
44+
lipo -create -output dist/json_equal.dylib dist/json_equal_x86.dylib dist/json_equal_arm64.dylib
45+
lipo -create -output dist/regexp.dylib dist/regexp_x86.dylib dist/regexp_arm64.dylib
46+
lipo -create -output dist/split_part.dylib dist/split_part_x86.dylib dist/split_part_arm64.dylib
47+
4348
pack-linux:
4449
zip -j dist/stackql-sqlite-ext-functions-$(version)-linux-amd64.zip dist/*.so
4550

0 commit comments

Comments
 (0)