Release v0.250329 #3
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 Release | |
| run-name: Release ${{ inputs.version }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Release version' | |
| required: true | |
| jobs: | |
| create_release: | |
| name: Create release | |
| runs-on: ubuntu-latest | |
| outputs: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| steps: | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.event.inputs.version }} | |
| release_name: Release ${{ github.event.inputs.version }} | |
| draft: false | |
| prerelease: false | |
| release_ubuntu_assets: | |
| name: Release Ubuntu 24 Assets | |
| needs: create_release | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| matrix: | |
| config: | |
| - os: ubuntu-24.04 | |
| prefix: ubuntu-amd64 | |
| - os: ubuntu-24.04-arm | |
| prefix: ubuntu-arm64 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y autoconf patch build-essential rustc libssl-dev \ | |
| libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev \ | |
| gawk bison libsqlite3-dev libtool pkg-config sqlite3 procps \ | |
| libgdbm6 libgdbm-dev libdb-dev uuid-dev curl nodejs | |
| - name: Build Binary | |
| run: make all PREFIX=${{ matrix.config.prefix }} | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| *.tar.gz | |
| *.json | |
| release_rocky_assets: | |
| name: Release Rocky 9 Assets | |
| needs: create_release | |
| runs-on: ${{ matrix.config.os }} | |
| container: | |
| image: rockylinux/rockylinux:9 | |
| strategy: | |
| matrix: | |
| config: | |
| - os: ubuntu-24.04 | |
| prefix: rocky-amd64 | |
| - os: ubuntu-24.04-arm | |
| prefix: rocky-arm64 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| dnf -y install epel-release http://rpms.remirepo.net/enterprise/remi-release-9.rpm | |
| dnf config-manager --enable crb | |
| dnf -y module enable nodejs:22 | |
| dnf -y install autoconf gcc patch bzip2 openssl-devel libyaml-devel \ | |
| libffi-devel readline zlib-devel gdbm-libs ncurses-devel tar perl-FindBin \ | |
| nodejs curl-minimal which procps diffutils | |
| - name: Build Binary | |
| run: make all PREFIX=${{ matrix.config.prefix }} | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| *.tar.gz | |
| *.json |