feat: Add optional ulimit
soft limit
#143
Workflow file for this run
This file contains 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*"] | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
environment: Linux | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install depends | |
run: | | |
sudo apt update && sudo apt install upx rename -y | |
- name: Get tag | |
if: startsWith(github.ref, 'refs/tags/') | |
id: tag | |
uses: dawidd6/action-get-tag@v1 | |
with: | |
strip_v: true | |
- name: Tag Check | |
run: | | |
echo "tag=${{ steps.tag.outputs.tag }}" >> $GITHUB_ENV | |
echo "tag=${{ steps.tag.outputs.tag }}" >> $GITHUB_OUTPUT | |
if [ -z "${{ steps.tag.outputs.tag }}" ]; then | |
echo "tag=latest" >> $GITHUB_OUTPUT | |
echo "tag=latest" >> $GITHUB_ENV | |
fi | |
- name: Build package | |
shell: bash | |
run: | | |
docker run --rm -t -v $(pwd):/build -w /build -e tag=$tag ghcr.io/0x676e67/cargo-zigbuild -c "os=linux ./.github/build.sh" | |
docker run --rm -t -v $(pwd):/build -w /build -e tag=$tag ghcr.io/0x676e67/cargo-zigbuild -c "os=macos ./.github/build.sh" | |
docker run --rm -t -v $(pwd):/build -w /build -e tag=$tag ghcr.io/0x676e67/cargo-zigbuild -c "os=windows ./.github/build.sh" | |
- name: Upload binaries to GitHub Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
token: ${{ secrets.CR_PAT }} | |
files: | | |
bin/* | |
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }} | |
generate_release_notes: true | |