Trigger lint on merge queue #4
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: Publish C API release | |
| on: | |
| push: | |
| branches: [main, test] | |
| tags: ['*'] | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.10.0" | |
| - name: Install system deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ninja-build libcunit1-dev | |
| - name: Install meson | |
| run: uv tool install meson==1.10.1 | |
| - name: Build tarball | |
| run: | | |
| git rm -rf c/tests/meson-subproject | |
| git config --global user.email "CI@CI.com" | |
| git config --global user.name "Mr Robot" | |
| git add -A | |
| git commit -m "dummy commit to make meson not add in the symlinked directory" | |
| meson c build-gcc | |
| meson dist -C build-gcc | |
| - name: C Release | |
| uses: softprops/action-gh-release@v2.5.0 | |
| if: startsWith(github.ref, 'refs/tags/') && contains(github.event.ref, 'C_') | |
| with: | |
| draft: True | |
| files: build-gcc/meson-dist/* |