Fix release workflows for artifact upload and glibc #3
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build binary | |
| run: | | |
| python -m pip install --upgrade pip | |
| scripts/build.sh | |
| mv dist/pidpal dist/pidpal-linux-x86_64 | |
| - name: Smoke test binary on Linux containers | |
| run: | | |
| docker run --rm -v "$PWD/dist:/dist:ro" debian:stable-slim /dist/pidpal-linux-x86_64 --version | |
| docker run --rm -v "$PWD/dist:/dist:ro" fedora:latest /dist/pidpal-linux-x86_64 --version | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2 | |
| with: | |
| files: dist/pidpal-linux-x86_64 |