2024-06-15 18:31:25 +03:00
|
|
|
name: macOS
|
2023-08-14 23:03:38 +03:00
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-05-20 22:50:07 +03:00
|
|
|
os: [macos-14, macos-13, macos-12]
|
2023-08-14 23:03:38 +03:00
|
|
|
name: ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2024-06-26 09:54:56 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
2023-08-14 23:03:38 +03:00
|
|
|
with:
|
|
|
|
submodules: true
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2023-08-14 23:03:38 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
brew install libsodium
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2023-08-14 23:03:38 +03:00
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
./configure
|
|
|
|
make -C build
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2023-08-14 23:03:38 +03:00
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
otool -L build/vpnserver
|
|
|
|
.ci/memory-leak-test.sh
|