-
Notifications
You must be signed in to change notification settings - Fork 64
85 lines (72 loc) · 2.2 KB
/
Copy pathci.yml
File metadata and controls
85 lines (72 loc) · 2.2 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI Examples
permissions:
contents: read
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
run-examples:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2022]
conan-version: [release, develop]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install cross-compilation toolchain (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y gcc-12-arm-linux-gnueabihf g++-12-arm-linux-gnueabihf
- name: Set up Python
id: setup_python
uses: actions/setup-python@v5
with:
python-version: "3.11"
update-environment: false
- name: Prepend Python to System PATH
run: echo "$(dirname ${{ steps.setup_python.outputs.python-path }})" >> $GITHUB_PATH
- name: Install CMake
uses: jwlawson/actions-setup-cmake@v1.14
with:
cmake-version: "3.23"
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- name: Install Bazel
uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-version: "1.27.0"
- name: Install autotools (macOS)
if: runner.os == 'macOS'
run: brew install automake autoconf
- name: Install Cosign
uses: sigstore/cosign-installer@v4.1.1
- name: Install Conan
shell: bash
run: |
python -m pip install --upgrade pip
if [[ "${{ matrix.conan-version }}" == "develop" ]]; then
pip install -e git+https://github.com/conan-io/conan.git@develop2#egg=conan --upgrade
else
pip install conan --upgrade
fi
pip install meson
conan --version
conan profile detect --force
- name: Find and run examples
shell: bash
env:
PYTHONPATH: ${{ github.workspace }}
COSIGN_PASSWORD: ""
run: python -u "${{ github.workspace }}/.github/run_ci_tests.py"