Skip to content

Bump version to 0.18.1 #33

Bump version to 0.18.1

Bump version to 0.18.1 #33

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
github-release-draft:
name: 'Create GitHub Release Draft'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.VERSION }}
upload-url: ${{ steps.create-release.outputs.upload_url }}
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: v${{ steps.get_version.outputs.VERSION }}
draft: true
linux-binary:
name: 'Upload Binary for Linux'
runs-on: ubuntu-latest
needs: github-release-draft
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependent packages
run: sudo apt install -y musl-tools
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-musl
override: true
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=x86_64-unknown-linux-musl
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.github-release-draft.outputs.upload-url }}
asset_path: target/x86_64-unknown-linux-musl/release/efmt
asset_name: efmt-${{ needs.github-release-draft.outputs.version }}.x86_64-unknown-linux-musl
asset_content_type: application/octet-stream
macos-binary:
name: 'Upload Binary for MacOS'
runs-on: macos-latest
needs: github-release-draft
strategy:
matrix:
target: ["x86_64-apple-darwin", "aarch64-apple-darwin"]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=${{ matrix.target }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.github-release-draft.outputs.upload-url }}
asset_path: target/${{ matrix.target }}/release/efmt
asset_name: efmt-${{ needs.github-release-draft.outputs.version }}.${{ matrix.target }}
asset_content_type: application/octet-stream