Skip to content

Commit 0a20d87

Browse files
committed
Update docs generation with conan2
1 parent faf5d0e commit 0a20d87

1 file changed

Lines changed: 20 additions & 17 deletions

File tree

.github/workflows/doxygen.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,57 @@ permissions:
99
pages: write
1010
deployments: write
1111
id-token: write
12-
12+
1313
env:
1414
CONAN_REVISIONS_ENABLED: 1
1515

1616
jobs:
1717
docs:
1818
runs-on: windows-latest
19-
2019
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
2322

2423
steps:
2524
- name: Check Installed Software
2625
run: where git & where python & where pip
2726
shell: cmd
28-
27+
2928
- name: Checkout
3029
uses: actions/checkout@v3
3130
with:
3231
submodules: 'recursive'
3332

3433
- name: Install Conan
35-
run: pip install conan==1.61
34+
run: pip install conan>=2.0
35+
36+
- name: Set Conan Home
37+
run: echo "CONAN_HOME=${{ github.workspace }}\packages" | Out-File -Append $env:GITHUB_ENV
38+
shell: powershell
39+
40+
- name: Detect Conan Profile
41+
run: conan profile detect
3642

37-
- name: Set Conan Folder
38-
run: conan config set storage.path=${{ github.workspace }}\packages
39-
4043
- name: Install Doxygen
41-
run: conan download doxygen/1.9.4@#19fe2ac34109f3119190869a4d0ffbcb --remote conancenter
44+
run: conan install --requires="doxygen/1.16.1" --deployer=full_deploy --deployer-folder="${{ github.workspace }}\packages" -r conancenter
4245

4346
- name: Find Doxygen Executable Path
4447
run: |
4548
$doxygenPath = Get-ChildItem -Path "${{ github.workspace }}\packages" -Recurse -Filter doxygen.exe | Select-Object -First 1 -ExpandProperty FullName
4649
echo "DOXYGEN_EXE_PATH=$doxygenPath" | Out-File -Append $env:GITHUB_ENV
4750
shell: powershell
48-
51+
4952
- name: Run Doxygen
5053
run: ${{ env.DOXYGEN_EXE_PATH }} ${{ github.workspace }}\Doxygen\Doxyfile
51-
54+
55+
- name: Setup Pages
56+
uses: actions/configure-pages@v2
57+
5258
- name: Upload Docs
5359
uses: actions/upload-pages-artifact@v3
5460
with:
5561
path: Documentation\html
56-
57-
- name: Setup Pages
58-
uses: actions/configure-pages@v2
59-
62+
6063
- name: Deploy To GitHub Pages
6164
id: deployment
62-
uses: actions/deploy-pages@v4
65+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)