This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: download package from conan center and upload it and dpendency to jfrog artifactory | ||
on: [workflow_dispatch] | ||
inputs: | ||
Check failure on line 3 in .github/workflows/github-actions-demo.yml GitHub Actions / download package from conan center and upload it and dpendency to jfrog artifactoryInvalid workflow file
|
||
package: | ||
description: 'The Conan package to install' | ||
required: true | ||
default: 'gdal/3.5.3' | ||
conan_version: | ||
description: 'The Conan version to install' | ||
required: true | ||
default: '1.65.0' | ||
upload: | ||
description: 'Set to true to perform the upload, false for dry run' | ||
required: false | ||
default: 'false' | ||
jobs: | ||
sync-to-artifactory: | ||
runs-on: ubuntu-latest | ||
env: | ||
CONAN_REVISIONS_ENABLED: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
- name: Install Conan | ||
run: | | ||
pip install --user conan==${{ inputs.conan_version }} | ||
conan --version | ||
- name: Install package | ||
run: | | ||
# list remote conan repo, should be conan center by default | ||
conan remote list | ||
# install package | ||
conan install ${{ inputs.package }} -s compiler=gcc -s compiler.version=11 -s compiler.libcxx=libstdc++11 -s build_type=Release | ||
- name: inspect installed package | ||
run: | | ||
conan search '*' --revisions | ||
- name: Upload | ||
if: ${{ inputs.upload == 'true' }} | ||
run: | | ||
# Upload only the Conan recipe to the default Conan local repository, excluding binaries | ||
conan upload ${{ inputs.package }} -r default-conan-local |