Skip to content

Commit

Permalink
Updating actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Feb 14, 2024
1 parent f83c552 commit d670e55
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci-conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
with:
path: ~/.conan2
key: ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.build_type }}-
${{ runner.os }}-
- name: Generate Dockerfile
run: |
mkdir /tmp/osp-builder-docker
Expand Down Expand Up @@ -75,7 +79,12 @@ jobs:
- name: Build cosim
run: |
docker run --rm --env GITHUB_REF="$GITHUB_REF" -v $(pwd):/mnt/source:ro -v ~/.conan2:${{ env.DOCKER_CONAN_HOME }} -u root osp-builder
- name: Save cache
id: cache-conan-save
uses: actions/cache/save@v3
with:
path: ~/.conan2
key: ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}

windows:
name: Windows
Expand Down Expand Up @@ -105,6 +114,10 @@ jobs:
with:
path: ~/.conan2
key: ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.build_type }}-
${{ runner.os }}-
- name: Install prerequisites
run: |
pip3 install --upgrade setuptools pip
Expand Down Expand Up @@ -135,3 +148,9 @@ jobs:
.
- name: Conan upload
run: conan upload --confirm --remote=osp 'libcosim/*'
- name: Save cache
id: cache-conan-save
uses: actions/cache/save@v3
with:
path: ~/.conan2
key: ${{ runner.os }}-${{ matrix.build_type }}-${{ env.cache-name }}-${{ hashFiles('**/conan.lock') }}

0 comments on commit d670e55

Please sign in to comment.