Update libsql dependency to version 0.9.29 #7
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: Build and Update | |
| on: | |
| push: | |
| branches: [ master ] | |
| paths: | |
| - '**.c' | |
| - '**.h' | |
| - '**/CMakeLists.txt' | |
| - '.github/workflows/**' | |
| - 'src/c_src/libsql/**' | |
| pull_request: | |
| paths: | |
| - '**.c' | |
| - '**.h' | |
| - '**/CMakeLists.txt' | |
| - '.github/workflows/**' | |
| - 'src/c_src/libsql/**' | |
| jobs: | |
| freebsd: | |
| uses: ./.github/workflows/freebsd_build.yml | |
| with: | |
| ring-version: v1.24 | |
| macos: | |
| uses: ./.github/workflows/macos_build.yml | |
| with: | |
| ring-version: v1.24 | |
| ubuntu: | |
| uses: ./.github/workflows/ubuntu_build.yml | |
| with: | |
| ring-version: v1.24 | |
| windows: | |
| uses: ./.github/workflows/windows_build.yml | |
| with: | |
| ring-version: v1.24 | |
| update-libs: | |
| runs-on: ubuntu-latest | |
| needs: [ freebsd, macos, ubuntu, windows ] | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Download all artifacts from this workflow run | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Copy artifacts to lib directory | |
| run: | | |
| mkdir -p lib | |
| for artifact_dir in artifacts/*/; do | |
| if [ -d "$artifact_dir" ]; then | |
| cp -a "${artifact_dir}." "lib/" | |
| fi | |
| done | |
| - name: Commit and push changes | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add lib | |
| if ! git diff --staged --quiet; then | |
| git commit -m "Update libs" | |
| git push | |
| else | |
| echo "No library changes to commit." | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |