Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollot authored Nov 27, 2023
1 parent 3f43eac commit c5c6d01
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: CMake on multiple platforms
on:
workflow_dispatch:
push:
branches: [ "win" ]
branches: [ "main" ]
pull_request:
branches: [ "win" ]
branches: [ "main" ]

jobs:
build:
Expand Down Expand Up @@ -44,8 +44,11 @@ jobs:
id: strings
shell: bash
run: |
echo "build-output-dir=build" >> "$GITHUB_OUTPUT"
echo "python-output-subdir=${{ matrix.build_type }}/$([[ "$OSTYPE" == "msys" ]] && echo "python310" || echo "lib/python3.10")" >> "$GITHUB_OUTPUT"
path-delimiter'=${{ runner.os == 'Windows' && '\' || '/'}}'
build-output-dir='${{ github.workspace }}$(path-delimiter)build'
echo "path-delimiter=$path-delimiter" >> "$GITHUB_OUTPUT'"
echo "build-output-dir=$build-output-dir" >> "$GITHUB_OUTPUT'"
echo "python-output-dir=$build-output-dir$path-delimiter${{ matrix.build_type }}$path-delimiter${{ runner.os == 'Windows' && echo "python310" || echo "lib/python3.10" }}" >> "$GITHUB_OUTPUT"
- name: Install Qt
uses: jurplel/install-qt-action@v3
Expand All @@ -60,8 +63,8 @@ jobs:
uses: actions/cache@v3
with:
path: |
'${{ steps.strings.outputs.build-output-dir }}/python'
'${{ steps.strings.outputs.build-output-dir }}/${{ steps.strings.outputs.python-output-subdir }}'
'${{ steps.strings.outputs.build-output-dir }}${{ steps.strings.outputs.path-delimiter }}python'
'${{ steps.strings.outputs.python-output-dir }}'
key: ${{ runner.OS }}-python-cache-${{ hashFiles('python/*') }}
restore-keys: |
${{ runner.OS }}-python-cache-
Expand Down

0 comments on commit c5c6d01

Please sign in to comment.