Skip to content

bump v6.7.4

bump v6.7.4 #55

Workflow file for this run

name: Publish Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
PROTOC_NO_VENDOR: 1
jobs:
publish-release:
name: Publish Release
env:
BINARY_NAME: cldi
runs-on: [self-hosted, Linux, alibaba-cloud]
strategy:
fail-fast: false
matrix:
build: [linux, linux-arm, linux-musl, linux-musl-arm, win-gnu, macos-arm, macos]
include:
- build: linux
target: x86_64-unknown-linux-gnu
- build: linux-musl
target: x86_64-unknown-linux-musl
- build: linux-arm
target: aarch64-unknown-linux-gnu
- build: linux-musl-arm
target: aarch64-unknown-linux-musl
- build: win-gnu
target: x86_64-pc-windows-gnu
- build: macos-arm
target: aarch64-apple-darwin
- build: macos
target: x86_64-apple-darwin
steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}
components: rustfmt, clippy
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build release binary
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }}
- name: Build archive
shell: bash
run: |
if [ "${{ matrix.target }}" == "x86_64-pc-windows-gnu" ]; then
tar czf ${{ env.BINARY_NAME }}-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ${{ env.BINARY_NAME }}.exe
else
tar czf ${{ env.BINARY_NAME }}-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ${{ env.BINARY_NAME }}
fi
- name: Upload release archive
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.BINARY_NAME }}-${{ matrix.target }}.zip
${{ env.BINARY_NAME }}-${{ matrix.target }}.tar.gz