-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.08 KB
/
build.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
52
53
54
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Dependencies
run: brew bundle
- name: Import certificate
env:
APPLE_DEVELOPER_CERT: ${{ secrets.APPLE_DEVELOPER_CERT }}
APPLE_DEVELOPER_CERT_PASSWORD: ${{ secrets. APPLE_DEVELOPER_CERT_PASSWORD }}
run: |
echo $APPLE_DEVELOPER_CERT | base64 --decode > cert.p12
sudo security import cert.p12 -A -k /Library/Keychains/System.keychain -P "$APPLE_DEVELOPER_CERT_PASSWORD"
rm cert.p12
- name: Build the Project
run: make
- name: Test
run: make test
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Developer Command Prompt (required for using nmake)
uses: ilammy/msvc-dev-cmd@v1
- name: Build with NMAKE
run: |
nmake
shell: cmd
- name: Test
run: |
nmake test-cli
shell: cmd