| 1 | --- |
| 2 | name: macOS build and test S2n |
| 3 | |
| 4 | on: |
| 5 | push: |
| 6 | branches: [main] |
| 7 | pull_request: |
| 8 | branches: [main] |
| 9 | merge_group: |
| 10 | types: [checks_requested] |
| 11 | branches: [main] |
| 12 | |
| 13 | permissions: |
| 14 | contents: read |
| 15 | |
| 16 | jobs: |
| 17 | OSX: |
| 18 | runs-on: macos-latest |
| 19 | steps: |
| 20 | - name: Checkout Dependencies |
| 21 | uses: actions/checkout@v7 |
| 22 | |
| 23 | - name: Prebuild |
| 24 | run: | |
| 25 | .github/install_osx_dependencies.sh |
| 26 | |
| 27 | - name: Build |
| 28 | run: | |
| 29 | .github/s2n_osx.sh |
| 30 | |
| 31 | OSX-x64-awslc: |
| 32 | runs-on: macos-14-large |
| 33 | name: macOS x64 with aws-lc |
| 34 | steps: |
| 35 | - uses: actions/checkout@v7 |
| 36 | |
| 37 | - name: Install dependencies |
| 38 | run: | |
| 39 | brew install openssl ninja go |
| 40 | |
| 41 | - name: Build and install AWS-LC |
| 42 | run: | |
| 43 | git clone --depth 1 https://github.com/aws/aws-lc.git |
| 44 | cmake -B aws-lc-build aws-lc -GNinja \ |
| 45 | -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/aws-lc-install \ |
| 46 | -DBUILD_SHARED_LIBS=OFF \ |
| 47 | -DBUILD_TESTING=OFF |
| 48 | cmake --build aws-lc-build --target install |
| 49 | |
| 50 | - name: Build s2n-tls |
| 51 | run: | |
| 52 | cmake -B build -GNinja \ |
| 53 | -DCMAKE_PREFIX_PATH=${{ github.workspace }}/aws-lc-install \ |
| 54 | -DCMAKE_BUILD_TYPE=Release \ |
| 55 | -DBUILD_TESTING=OFF |
| 56 | cmake --build build |