Skip to content

Commit

Permalink
Merge pull request #74 from lbl-srg/issue73_pwsh
Browse files Browse the repository at this point in the history
Issue73 pwsh
  • Loading branch information
AntoineGautier authored Sep 15, 2023
2 parents ba06b1c + f805ffa commit 38ea8a0
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: ['3.8', '3.9']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
shell: bash
run: ctest -C $BUILD_TYPE --verbose

- name: Push binaries
- name: Stage binaries
if: |
contains(matrix.os, 'latest') &&
contains(matrix.python-version, '3.9') &&
Expand All @@ -81,5 +81,25 @@ jobs:
git config --global user.name $GH_USERNAME
git config --global user.email [email protected]
git config --global pull.rebase false
git stash
git pull
git stash apply
git add ${{ github.workspace }}/pyfunnel/lib
git diff-index --quiet HEAD || { git commit -m "Add ${{ matrix.os }} binaries" && git pull && git push; }
- name: Push Linux & macOS binaries
if: |
(matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest') &&
contains(matrix.python-version, '3.9') &&
github.event_name == 'push' &&
github.ref == 'refs/heads/master'
run: |
git diff-index --quiet HEAD || { git commit -m "Add ${{ matrix.os }} binaries" && git push; }
- name: Push Windows binaries
if: |
matrix.os == 'windows-latest' &&
contains(matrix.python-version, '3.9') &&
github.event_name == 'push' &&
github.ref == 'refs/heads/master'
run: |
git diff-index --quiet HEAD; if(-not $?) { (git commit -m "Add ${{ matrix.os }} binaries") -and (git push) }

0 comments on commit 38ea8a0

Please sign in to comment.