Skip to content

release: prepare Forest v0.22.0 "Pad Thai" (#4971) #64

release: prepare Forest v0.22.0 "Pad Thai" (#4971)

release: prepare Forest v0.22.0 "Pad Thai" (#4971) #64

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-24.04
file: forest-${{ github.ref_name }}-linux-amd64.zip
- os: macos-latest
file: forest-${{ github.ref_name }}-macos-arm64.zip
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Homebrew Utils
if: contains(matrix.os, 'macos')
run: |
brew install --verbose coreutils
- name: Rust Cache
uses: Swatinem/rust-cache@v2
timeout-minutes: 5
continue-on-error: true
- uses: actions/setup-go@v5
with:
go-version-file: "go.work"
- name: Cargo Build
run: |
mkdir -p release-binaries forest-${{ github.ref_name }}
cargo install --locked --path . --force --root release-binaries
mv -v release-binaries/bin/* forest-${{ github.ref_name }}
- name: Pack artifacts
run: |
for bin in forest-${{ github.ref_name }}/*; do
sha256sum $bin > $bin.sha256
done
cp -rv CHANGELOG.md LICENSE-APACHE LICENSE-MIT README.md forest-${{ github.ref_name }}
zip -r ${{ matrix.file }} forest-${{ github.ref_name }}
- name: Upload Binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ github.token }}
file: ${{ matrix.file }}
asset_name: ${{ matrix.file }}
tag: ${{ github.ref_name }}
overwrite: true
prerelease: true