This action is usefull when you want to upload packages built in separate CI jobs. First you need to upload them as artifacts from their jobs, then you need to download them all, export them into Conan cache and finally upload.
Example usage:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- run: conan create .
- uses: grisumbras/locate-conan-package@latest
id: locate_package
- uses: actions/upload-artifact@v1
with:
name: artifacts-${{ matrix.os }}
path: ${{ steps.locate_package.outputs.path }}
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact@v1
with:
name: artifacts-ubuntu-latest
path: artifacts
- uses: actions/upload-artifact@v1
with:
name: artifacts-macOS-latest
path: artifacts
- uses: actions/upload-artifact@v1
with:
name: artifacts-windows-latest
path: artifacts
- uses: grisumbras/conan-export-subdirs@latest
with:
path: artifactsVersion of the package to export. If not specified, version attribute of the
package recipe is used.
User (namespace) of the package to export. If not specified
-
CONAN_USERNAMEenvironment variable is used, if present; -
or
default_userattribute of the package recipe is used, if present; -
or the first part of the value of
GITHUB_REPOSITORYenvironment variable (before the slash) is used.
Channel of the package to export. If not specified
-
CONAN_CHANNELenvironment variable is used, if present; -
or
default_channelattribute of the package recipe is used, if present; -
or the string
testing.
Dmitry Arkhipov <[email protected]>
BSL-1.0 © 2019 Dmitry Arkhipov