-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (25 loc) · 983 Bytes
/
build-macos.yml
File metadata and controls
30 lines (25 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build MacOS
on:
workflow_call:
workflow_dispatch:
jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11.4
- name: Install UnixODBC and MSODBCSQL18
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
HOMEBREW_SANDBOX=1 HOMEBREW_ACCEPT_EULA=Y brew install unixodbc msodbcsql18
- run: pip install -r Tools/mssql-proxy/requirements.txt pyinstaller
- run: pyinstaller mssql-proxy.mac.spec
working-directory: Tools/mssql-proxy
- run: tar -czf mssql-proxy-${{ github.ref_name }}-macos.tar.gz Tools/mssql-proxy/dist
- uses: actions/upload-artifact@v4
with:
name: build-macos
path: mssql-proxy-${{ github.ref_name }}-macos.tar.gz