-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (41 loc) · 1.3 KB
/
pull-request-closed.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
name: "Rebuild default Conan cache"
on:
pull_request_target:
types:
- closed
branches:
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
load-linux-conan-cache:
name: "Refresh Conan cache on Linux"
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare Conan cache
id: cache-conan
uses: actions/cache@v4
with:
path: ~/.conan
key: conan-packages-${{ runner.os }}-hash-${{ hashFiles('conanfile.py') }}
- name: Install GTK2
if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
run: sudo apt-get update && sudo apt-get install gtk2.0 libgtk2.0-dev -y
- name: Install pip dependencies
if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
run: pip install -r requirements.txt
- name: Build Conan dependencies
if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
run: |
conan install . \
--build=missing \
-s build_type=Release \
-if dist3/conan \
-o opNav=True \
-o vizInterface=True \
-o generator="Ninja" \
--update