Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine committed Nov 15, 2024
1 parent 811f75a commit cdee0c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
runs-on: ubuntu-latest
env:
CONAN_REVISIONS_ENABLED: 1
# the path of the conanfile.py
PACKAGE_RECIPE_PATH: ${{ github.event.inputs.package | trim }}/${{ github.event.inputs.conanfile_path | trim }}
# the package reference
PACKAGE_REF: ${{ github.event.inputs.package | trim }}/${{ github.event.inputs.version | trim }}@${{ github.event.inputs.user_channel | trim }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -61,11 +65,13 @@ jobs:
- name: build a package
run: |
# get the path of the conanfile.py
PACKAGE_RECIPE_PATH="${{ github.event.inputs.package }}/${{ github.event.inputs.conanfile_path }}"
# build the package
conan create $PACKAGE_RECIPE_PATH ${{ github.event.inputs.package }}/${{ github.event.inputs.version }}@ --build=missing -s compiler=gcc -s compiler.version=11 -s compiler.libcxx=libstdc++11 -s build_type=Release
conan create $PACKAGE_RECIPE_PATH $PACKAGE_REF \
--build=missing \
-s compiler=gcc \
-s compiler.version=11 \
-s compiler.libcxx=libstdc++11 \
-s build_type=Release
- name: inspect built package
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sync-to-artifactory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
runs-on: ubuntu-latest
env:
CONAN_REVISIONS_ENABLED: 1
PACKAGE_REF: ${{ github.event.inputs.package | trim }}/${{ github.event.inputs.version | trim }}@
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -48,7 +49,11 @@ jobs:
- name: Install package
run: |
conan install ${{ github.event.inputs.package }}/${{ github.event.inputs.version }}@ -s compiler=gcc -s compiler.version=11 -s compiler.libcxx=libstdc++11 -s build_type=Release
conan install $PACKAGE_REF \
-s compiler=gcc \
-s compiler.version=11 \
-s compiler.libcxx=libstdc++11 \
-s build_type=Release
- name: inspect installed package
run: |
Expand Down

0 comments on commit cdee0c9

Please sign in to comment.