Merge pull request #27 from wravery/dev #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update bindings for macOS | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- Cargo.lock | |
jobs: | |
update-bindings: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Update Bindings | |
run: | | |
cargo run -p update-bindings -- -b -d aarch64-apple-darwin | |
cargo run -p update-bindings -- -b -d x86_64-apple-darwin | |
- name: Push Changes | |
shell: bash {0} | |
run: | | |
git config user.name "tauri" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m 'chore: update macos bindings' | |
if [ $? -eq 0 ]; then | |
git switch -c update-macos | |
git push --force -u origin update-macos | |
else | |
echo "::debug::No changes to commit." | |
fi |