Skip to content

Bump version 0.1.0alpha.2 and update CHANGELOG.md #2

Bump version 0.1.0alpha.2 and update CHANGELOG.md

Bump version 0.1.0alpha.2 and update CHANGELOG.md #2

Workflow file for this run

# This Github workflow will create a new release when a tag is pushed,
# then it will build the binary and it will add it to the release assets
# in a tar.gz archive along with other components.
#
# Reference:
# https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml
# https://github.com/rhino-linux/rhino-setup/blob/master/.github/workflows/package.yml
name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
create-release:
name: create-release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.release.outputs.upload_url }}
version: ${{ github.ref_name }}
steps:
- name: Create Github Release
id: release
uses: softprops/action-gh-release@v1
with:
body: "For details read the `CHANGELOG.md` file."
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
build-release:
name: build-release
needs: ["create-release"]
runs-on: ${{ matrix.os }}
env:
TARGET_DIR: ./target
# Emit backtraces on panics.
RUST_BACKTRACE: 1
strategy:
matrix:
build: [linux]
include:
- build: linux
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-musl
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
- name: Install System Deps
shell: bash
run: sudo apt install libadwaita-1-dev desktop-file-utils meson -y
- name: Setup
run: meson build
- name: Build
run: meson install -C build --destdir "builds/${{ matrix.target }}"
- name: Create Archive
shell: bash
run: |
archive="stackbloatless-${{ needs.create-release.outputs.version }}-${{ matrix.target }}.tar.gz"
tar -C "build/builds/" --create "${{ matrix.target }}/" --gzip --file "$archive"
echo "ASSET=$archive" >> $GITHUB_ENV
- name: Upload Release Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ${{ env.ASSET }}
asset_name: ${{ env.ASSET }}
asset_content_type: application/octet-stream