Skip to content

chore: Release binup version 1.3.0 #22

chore: Release binup version 1.3.0

chore: Release binup version 1.3.0 #22

Workflow file for this run

name: Release
on:
push:
tags:
- v*.*.*
jobs:
test:
name: Test
uses: KonishchevDmitry/binup/.github/workflows/test.yml@master
build:
name: Build for ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
# See https://bit.ly/github-runners for actual runners
- name: Ubuntu 20.04
os: ubuntu-20.04
- name: Intel MacOS
os: macos-13
- name: ARM MacOS
os: macos-14
steps:
- uses: actions/checkout@v4
- name: Configure build target
run: .github/configure-build-target
- name: Build
env:
CARGO_TERM_COLOR: always
run: cargo build --release --locked
- name: Check the binary
run: .github/check-binary release
- name: Create archive
id: archive
run: |
set -eux
name="binup-${{ runner.os }}-${{ runner.arch }}-${{ github.ref_name }}.tar.bz2"
name="$(tr '[:upper:]' '[:lower:]' <<< "$name")"
echo "name=$name" >> "$GITHUB_OUTPUT"
tar -cjf "$name" -C "target/${CARGO_BUILD_TARGET:-}/release" binup
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.os }}
path: ${{ steps.archive.outputs.name }}
if-no-files-found: error
compression-level: 0
retention-days: 1
publish:
name: Publish
needs: [test, build]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
pattern: "*"
merge-multiple: true
- name: Create release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: artifacts/*
file_glob: true