Skip to content

Commit 732a44a

Browse files
committed
🐛 Add --build=<library> to package creation
Without this flag, newer revisions of a package will not be created and the old version will be downloaded again, doing nothing silently OR crashing due to old dependencies that may be broken.
1 parent 43ba404 commit 732a44a

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎.github/workflows/package_and_upload.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,26 @@ jobs:
9494
- name: 📡 Create and setup default profile
9595
run: conan profile detect --force
9696

97-
- name: 📡 Add conan libhal remote
98-
run: conan remote add libhal https://libhal.jfrog.io/artifactory/api/conan/trunk-conan
99-
10097
- name: 📡 Add conan user remote-package-repo
10198
if: ${{ inputs.remote_url != '' }}
10299
run: conan remote add --force remote-package-repo ${{ inputs.remote_url }}
103100
# We use --force to allow the remote-package-repo to also be the libhal
104101
# repo.
105102

106-
- name: 📡 Install libhal settings_user.yml
103+
- name: 📡 Install libhal conan configs v2
107104
run: conan config install https://github.com/libhal/conan-config2.git --args="-b ${{ inputs.config2_version }}"
108105

106+
- name: 📡 Perform conan hal setup
107+
run: conan hal setup
108+
109109
- name: 📦 Create `Debug` package for ${{ inputs.profile }}
110-
run: conan create ${{ inputs.dir }} -s:h build_type=Debug -s:h os=${{ inputs.os }} -s:h arch=${{ inputs.arch }} --version=${{ inputs.version }} -pr:h ${{ inputs.compiler_profile }} --build=missing ${{ inputs.extra_conan_arguments }}
110+
run: conan create ${{ inputs.dir }} --build="${{ inputs.library }}/*" -s:h build_type=Debug -s:h os=${{ inputs.os }} -s:h arch=${{ inputs.arch }} --version=${{ inputs.version }} -pr:h ${{ inputs.compiler_profile }} --build=missing ${{ inputs.extra_conan_arguments }}
111111

112112
- name: 📦 Create `MinSizeRel` package for ${{ inputs.profile }}
113-
run: conan create ${{ inputs.dir }} -s:h build_type=MinSizeRel -s:h os=${{ inputs.os }} -s:h arch=${{ inputs.arch }} --version=${{ inputs.version }} -pr:h ${{ inputs.compiler_profile }} --build=missing ${{ inputs.extra_conan_arguments }}
113+
run: conan create ${{ inputs.dir }} --build="${{ inputs.library }}/*" -s:h build_type=MinSizeRel -s:h os=${{ inputs.os }} -s:h arch=${{ inputs.arch }} --version=${{ inputs.version }} -pr:h ${{ inputs.compiler_profile }} --build=missing ${{ inputs.extra_conan_arguments }}
114114

115115
- name: 📦 Create `Release` package for ${{ inputs.profile }}
116-
run: conan create ${{ inputs.dir }} -s:h build_type=Release -s:h os=${{ inputs.os }} -s:h arch=${{ inputs.arch }} --version=${{ inputs.version }} -pr:h ${{ inputs.compiler_profile }} --build=missing ${{ inputs.extra_conan_arguments }}
116+
run: conan create ${{ inputs.dir }} --build="${{ inputs.library }}/*" -s:h build_type=Release -s:h os=${{ inputs.os }} -s:h arch=${{ inputs.arch }} --version=${{ inputs.version }} -pr:h ${{ inputs.compiler_profile }} --build=missing ${{ inputs.extra_conan_arguments }}
117117

118118
- name: 📡 Sign into Conan Package Repository
119119
if: ${{ inputs.version != 'latest' && inputs.remote_url != '' && env.CONAN_REMOTE_USER != '' && env.CONAN_REMOTE_PASSWORD != '' }}

‎.github/workflows/self_check.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ on:
1919
push:
2020
branches:
2121
- main
22-
schedule:
23-
- cron: "0 12 * * 0"
2422
workflow_dispatch:
2523

2624
concurrency:

0 commit comments

Comments
 (0)