Skip to content

adds x86_64-apple as a target along with x86_64-linux #2

adds x86_64-apple as a target along with x86_64-linux

adds x86_64-apple as a target along with x86_64-linux #2

Workflow file for this run

name: Github release for the repo
permissions:
contents: write
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
cargo_build:
name: Cargo build
runs-on: ubuntu-20.04
container:
image: quay.io/tembo/muslrust:1.71.0-stable
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-apple-darwin
asset_name: x86_64-apple
- target: x86_64-unknown-linux-musl
asset_name: x86_64-linux
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Cargo build
working-directory: ./tembo-cli
id: cargo_build
run: |
set -x
cargo build --release --target=${{ matrix.target }}
TEMBO_VERSION=$(target/${{ matrix.target }}/release/tembo --version)
TEMBO_CLI_NAME="$(echo $TEMBO_VERSION | sed 's/ /-/g')"
echo "TEMBO_CLI_NAME=$TEMBO_CLI_NAME" >> $GITHUB_ENV
git config --global --add safe.directory '*'
- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@v4.2.0
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
fetch: false
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: tembo-cli/target/${{ matrix.target }}/release/tembo
asset_name: ${{ env.TEMBO_CLI_NAME }}-${{ matrix.asset_name }}
prerelease: true
tag: ${{ github.ref }}
body: ${{ steps.changelog.outputs.changelog }}