File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 76
76
if (Select-String -Path test.log -Pattern '^[0-9_]+.[^1]$') { throw 'Test failed' }
77
77
Write-Host "split_part tests completed successfully."
78
78
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'
87
81
run : |
88
- make compile-macos-arm64
82
+ make compile-macos-universal
89
83
make test-all
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ compile-macos-arm64:
40
40
gcc -O2 -fPIC -dynamiclib -Isrc -target arm64-apple-macos12 src/regexp/* .c -o dist/regexp_arm64.dylib
41
41
gcc -O2 -fPIC -dynamiclib -Isrc -target arm64-apple-macos12 src/split_part/* .c -o dist/split_part_arm64.dylib
42
42
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
+
43
48
pack-linux :
44
49
zip -j dist/stackql-sqlite-ext-functions-$(version ) -linux-amd64.zip dist/* .so
45
50
You can’t perform that action at this time.
0 commit comments