mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 10:54:04 +00:00
ci: try to set up macOS cross-compilation
This commit is contained in:
parent
04ff76117f
commit
611195e4d3
1 changed files with 20 additions and 2 deletions
22
.github/workflows/extensions.yml
vendored
22
.github/workflows/extensions.yml
vendored
|
|
@ -46,8 +46,12 @@ jobs:
|
|||
if: runner.os == 'Linux' && matrix.arch == 'ARM64'
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Build C files
|
||||
if: runner.os != 'Linux' || matrix.arch != 'ARM64'
|
||||
- name: Build C files (Native Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: cd extensions && make
|
||||
|
||||
- name: Build C files (Native Linux)
|
||||
if: runner.os == 'Linux' && matrix.arch == 'X64'
|
||||
run: cd extensions && make
|
||||
|
||||
- name: Build C files (Linux cross-compilation)
|
||||
|
|
@ -59,6 +63,20 @@ jobs:
|
|||
debian:bookworm-slim \
|
||||
bash -c "apt-get update && apt-get install -y make gcc && cd /extensions && make"
|
||||
|
||||
- name: Build C files (Native macOS ARM64)
|
||||
if: matrix.os == 'macos-latest' && matrix.arch == 'ARM64'
|
||||
run: cd extensions && make
|
||||
|
||||
- name: Build C files (macOS cross-compilation)
|
||||
if: matrix.os == 'macos-latest' && matrix.arch == 'X64'
|
||||
run: |
|
||||
cd extensions
|
||||
brew install llvm
|
||||
export CC=/opt/homebrew/opt/llvm/bin/clang
|
||||
export CFLAGS="-target x86_64-apple-darwin"
|
||||
export LDFLAGS="-target x86_64-apple-darwin"
|
||||
make
|
||||
|
||||
- name: Commit output files
|
||||
shell: bash
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue