Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue73 pwsh #74

Merged
merged 7 commits into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) }
Loading