Skip to content

Commit 40ce125

Browse files
committed
manually overwrite the compiler for conan
1 parent bfa5a53 commit 40ce125

1 file changed

Lines changed: 35 additions & 24 deletions

File tree

.github/workflows/build-puredata-plugins-with-pd-lib-builder.yml

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -188,39 +188,50 @@ jobs:
188188
run-id: ${{ github.event.workflow_run.id || inputs.core_run_id }}
189189
github-token: ${{ github.token }}
190190

191-
- name: Set up Conan
192-
shell: bash
193-
run: |
194-
set -euo pipefail
195-
pip install conan
191+
# - name: Set up Conan
192+
# shell: bash
193+
# run: |
194+
# pip install conan
195+
196+
# conan profile detect --name mingw --force
196197

198+
# PROFILE_PATH=$(conan profile path default)
197199

198-
PROFILE_DIR="$HOME/.conan2/profiles"
199-
mkdir -p "$PROFILE_DIR"
200+
# echo "Default profile path: $PROFILE_PATH"
200201

201-
PROFILE="$PROFILE_DIR/mingw"
202+
# conan profile set settings.os=Windows mingw
203+
# conan profile set settings.arch=x86_64 mingw
204+
# conan profile set settings.compiler=gcc mingw
205+
# conan profile set settings.compiler.version=13 mingw
206+
# conan profile set settings.compiler.libcxx=libstdc++11 mingw
207+
# conan profile set settings.build_type=Release mingw
202208

203-
cat > "$PROFILE" << 'EOF'
204-
[settings]
205-
os=Windows
206-
arch=x86_64
207-
build_type=Release
208-
compiler=gcc
209-
compiler.version=13
210-
compiler.libcxx=libstdc++11
209+
# conan profile set conf.tools.build:compiler_executables.c=x86_64-w64-mingw32-gcc mingw
210+
# conan profile set conf.tools.build:compiler_executables.cpp=x86_64-w64-mingw32-g++ mingw
211211

212-
[conf]
213-
tools.build:compiler_executables={"c":"x86_64-w64-mingw32-gcc","cpp":"x86_64-w64-mingw32-g++"}
214-
EOF
212+
# conan profile show mingw
215213

216-
conan profile show mingw
214+
# - name: Install Dependencies
215+
# shell: bash
216+
# working-directory: puredata
217+
# run: |
218+
# mkdir -p build
219+
# conan install . --output-folder=build --build=missing -pr:b=mingw -pr:h=mingw
220+
221+
- name: Set up Conan
222+
run: |
223+
pip install conan
224+
conan profile detect --force
217225
218226
- name: Install Dependencies
219-
shell: bash
220-
working-directory: puredata
227+
working-directory: core
221228
run: |
222-
mkdir -p build
223-
conan install . --output-folder=build --build=missing -pr:b=mingw -pr:h=mingw
229+
mkdir build
230+
conan install . --output-folder=build --build=missing `
231+
-s compiler=gcc `
232+
-s compiler.version=13 `
233+
-s compiler.libcxx=libstdc++11 `
234+
-s build_type=Release
224235
225236
- name: Build External
226237
shell: bash

0 commit comments

Comments
 (0)