chore(cmake): update wolfssl and curl version tags #40
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/**' | |
| - '.gitmodules' | |
| - 'src/c_src/**' | |
| pull_request: | |
| paths: | |
| - '**.c' | |
| - '**.h' | |
| - '**/CMakeLists.txt' | |
| - '.github/workflows/**' | |
| - '.gitmodules' | |
| - 'src/c_src/**' | |
| jobs: | |
| alpine: | |
| uses: ./.github/workflows/alpine_build.yml | |
| with: | |
| ring-version: master | |
| freebsd: | |
| uses: ./.github/workflows/freebsd_build.yml | |
| with: | |
| ring-version: master | |
| macos: | |
| uses: ./.github/workflows/macos_build.yml | |
| with: | |
| ring-version: master | |
| ubuntu: | |
| uses: ./.github/workflows/ubuntu_build.yml | |
| with: | |
| ring-version: master | |
| windows: | |
| uses: ./.github/workflows/windows_build.yml | |
| with: | |
| ring-version: master | |
| update-libs: | |
| runs-on: ubuntu-latest | |
| needs: [ alpine, 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 | |
| echo "=== Artifacts structure ===" | |
| find artifacts -type f | |
| echo "=== Copying artifacts ===" | |
| for artifact_dir in artifacts/*/; do | |
| if [ -d "$artifact_dir" ]; then | |
| echo "Copying from: $artifact_dir" | |
| cp -a "${artifact_dir}." "lib/" | |
| fi | |
| done | |
| echo "=== Final lib structure ===" | |
| find lib -type f | |
| - 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 "chore: update prebuilt libraries" | |
| git push | |
| else | |
| echo "No library changes to commit." | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |