2024-06-15 18:31:25 +03:00
|
|
|
name: macOS
|
2023-08-14 23:03:38 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2023-08-14 23:03:38 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-08-31 08:58:49 +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-08-31 08:58:49 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
brew install libsodium
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Compile
|
|
|
|
run: |
|
|
|
|
./configure
|
|
|
|
make -C build
|
2024-06-15 18:31:25 +03:00
|
|
|
|
2024-08-31 08:58:49 +03:00
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
otool -L build/vpnserver
|
|
|
|
.ci/memory-leak-test.sh
|