-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (37 loc) · 1.14 KB
/
conan.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
name: Build Pichi with Conan
on:
workflow_call:
inputs:
image:
required: true
type: string
os:
required: true
type: string
args:
required: false
type: string
jobs:
build:
runs-on: ${{ inputs.image }}
steps:
- uses: actions/checkout@v3
- name: Install Conan on macOS
if: ${{ inputs.image == 'macos-12' }}
run: brew install conan
- name: Install Conan on non-macOS
if: ${{ inputs.image != 'macos-12' }}
uses: turtlebrowser/get-conan@v1.1
- name: Install NASM for windows
if: ${{ inputs.os == 'windows' }}
run: choco install -y nasm
- name: Export BoringSSL recipe into the Conan cache
run: .conan/scripts/conan.sh export -k .conan/scripts/latest.lock boringssl
- name: Export libmaxminddb recipe into the Conan cache
run: .conan/scripts/conan.sh export -k .conan/scripts/latest.lock libmaxminddb
- name: Build pichi recipe
run: >
.conan/scripts/conan.sh build -k .conan/scripts/latest.lock
-p ${{ inputs.os }}
${{ inputs.args }}
latest