Skip to content

Commit 1b587f3

Browse files
committed
Refactor GitHub Actions workflow to improve Conan profile configuration and path handling
1 parent 2444c7b commit 1b587f3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build_renode_package.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,19 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install conan
26+
27+
- name: Configure Conan profile
28+
run: |
2629
conan profile detect
30+
env:
31+
CONAN_USER_HOME: ~/.conan2/${{ matrix.os == 'windows-latest' && 'Windows' || matrix.os == 'macos-latest' && 'Macos' || 'Linux' }}
2732

2833
- name: create dotnet Package
2934
working-directory: dot_net
3035
run: |
3136
conan create .
3237
env:
33-
CONAN_HOME: ${{ github.workspace }}/.conan2/${{ matrix.os == 'windows-latest' && 'Windows' || matrix.os == 'macos-latest' && 'Macos' || 'Linux' }}
38+
CONAN_HOME: ~/.conan2/${{ matrix.os == 'windows-latest' && 'Windows' || matrix.os == 'macos-latest' && 'Macos' || 'Linux' }}
3439

3540
- name: Create Renode package
3641
run: conan create .
@@ -39,5 +44,5 @@ jobs:
3944
uses: actions/upload-artifact@v4
4045
with:
4146
name: renode-artifacts
42-
path: ${{ github.workspace }}/.conan2/${{ matrix.os == 'windows-latest' && 'Windows' || matrix.os == 'macos-latest' && 'Macos' || 'Linux' }}/*
47+
path: ~/.conan2/${{ matrix.os == 'windows-latest' && 'Windows' || matrix.os == 'macos-latest' && 'Macos' || 'Linux' }}/*
4348
retention-days: 1

0 commit comments

Comments
 (0)