-
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (51 loc) · 1.44 KB
/
macos.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
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: macOS
permissions:
id-token: write
contents: read
env:
GITHUB_ACTIONS: true
VCPKG_ROOT: ${{github.workspace}}/vcpkg
jobs:
build:
name: "Build on arm64"
runs-on: macos-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup Environment"
run: |
mkdir build
brew install python-setuptools
- name: "Vcpkg"
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: boost-json curl gettext-libintl glib gtest maddy openssl
triplet: arm64-osx
revision: a54c4ba3aef5fe56cf11192f4476aaf057876551
token: ${{ secrets.GITHUB_TOKEN }}
github-binarycache: true
- name: "Build"
working-directory: ${{github.workspace}}/build
run: |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
cmake --build .
- name: "Install"
working-directory: ${{github.workspace}}/build
run: cmake --install .
- name: "Test"
run: ${{github.workspace}}/build/libnick_test
- name: Upload
uses: actions/upload-artifact@v4
with:
path: ${{github.workspace}}/install
name: macOS-arm64-Release