Skip to content

Enhance Linux Install v1.0.4.5 - Fix PEP 668, add architecture detect… #1

Enhance Linux Install v1.0.4.5 - Fix PEP 668, add architecture detect…

Enhance Linux Install v1.0.4.5 - Fix PEP 668, add architecture detect… #1

Workflow file for this run

name: Build and Release Native Binaries
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: tech
asset_name: tech-linux-x64
- os: macos-latest
artifact_name: techscript
asset_name: tech-macos-x64
- os: windows-latest
artifact_name: techscript.exe
asset_name: techscript-windows-x64.exe
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build in Release mode
run: |
cd runtime
cargo build --release
- name: Rename and Prepare Assets
shell: bash
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
mv runtime/target/release/techscript.exe ${{ matrix.asset_name }}
else
# Rename based on actual binary name produced by Cargo
if [ -f "runtime/target/release/techscript" ]; then
mv runtime/target/release/techscript ${{ matrix.asset_name }}
else
mv runtime/target/release/tech ${{ matrix.asset_name }}
fi
chmod +x ${{ matrix.asset_name }}
fi
- name: Upload Release Assets
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.asset_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}