-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.27 KB
/
macos_x64.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build on Macos x64
on:
workflow_dispatch:
# push:
# branches:
# - master
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
node: [ 16, 18, 20 ]
libpg: [ 16 ]
architecture: [ 'x64' ]
steps:
- uses: actions/checkout@v4
- name: Download libpq_query ${{ matrix.libpg }}-latest
working-directory: ${{env.GITHUB_WORKSPACE}}
# run: git clone -b "${{ matrix.libpg }}-latest" https://github.com/pganalyze/libpg_query.git
run: git clone -b "master" https://github.com/MGorkov/libpg_query.git
- name: Build libpg_query
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cd libpg_query
make build
- name: Setup Node.JS v${{ matrix.node }} and run install
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.architecture }}
- name: Setup Python
run: brew install python-setuptools
- name: Install
run: npm install
- name: Package
run: npm run binary:package
- name: Publish
env:
AWS_ACCESS_KEY_ID: ${{ secrets.NODE_PRE_GYP_ACCESSKEYID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.NODE_PRE_GYP_SECRETACCESSKEY }}
run: npm run binary:publish