Skip to content

Commit

Permalink
M1 build (#1849)
Browse files Browse the repository at this point in the history
* m1 build

* try m clang instead of gcc

* remove ldflags and cpath

* add back

* unlink openssl in m1

* -Wno-nullability-extension

* -Wno-nullability-extension in compile options

* -Wno-nullability-extension in compile options

* try cmake twice

* add wno to libsrtp in cmake_c_flags

* llvm

* llvm@15

* llvm@15 removed tests

* run cmake only once on m1

* run cmake twice with tests

* check the contents of build

* don't run the tests

* remove wno

* gcc
  • Loading branch information
niyatim23 authored Nov 27, 2023
1 parent 9922363 commit 3d65091
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,27 @@ jobs:
run: |
cd build
./tst/webrtc_client_test
mac-os-m1-build-clang:
runs-on: macos-13-xlarge
env:
AWS_KVS_LOG_LEVEL: 2
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Build repository
run: |
brew unlink openssl
mkdir build && cd build
sh -c 'cmake .. -DCMAKE_C_COMPILER=$(brew --prefix llvm@15)/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++;cmake .. -DCMAKE_C_COMPILER=$(brew --prefix llvm@15)/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++'
make
static-build-mac:
runs-on: macos-11
env:
Expand Down

0 comments on commit 3d65091

Please sign in to comment.