-
Notifications
You must be signed in to change notification settings - Fork 27
47 lines (43 loc) · 1.6 KB
/
gen-packages-info.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
name: Generate Conan Packages Info
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
gen_packages_info:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ make cmake pkg-config
python -m pip install --upgrade pip
- name: Check out repository code
uses: actions/checkout@v4
with:
path: clion-plugin
- name: Configure Conan
run: |
pip install conan --upgrade
conan --version
pip install -r clion-plugin/.ci/requirements.txt
conan profile detect
- name: Run the script
run: |
git clone https://github.com/conan-io/conan-center-index tmp/conan-center-index
cd clion-plugin/.ci
python crawl.py ../../tmp/conan-center-index/recipes ../src/main/resources/conan/targets-data.json ../src/main/resources/conan/targets-data.json
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --local user.name "$GITHUB_ACTOR"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
git add ../src/main/resources/conan/targets-data.json
if git diff-index --quiet HEAD --; then
echo "No changes to commit"
else
git commit -m "update targets-data.json"
git push origin develop2
fi