Skip to content

chore(cmake): update wolfssl and curl version tags #40

chore(cmake): update wolfssl and curl version tags

chore(cmake): update wolfssl and curl version tags #40

Workflow file for this run

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 }}