Skip to content

Update HybridAI defaults and release workflow #3

Update HybridAI defaults and release workflow

Update HybridAI defaults and release workflow #3

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
bin: nanocode
- os: windows-latest
target: x86_64-pc-windows-msvc
bin: nanocode.exe
- os: macos-14
target: aarch64-apple-darwin
bin: nanocode
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: cargo build --release --target ${{ matrix.target }}
- run: |
mkdir -p dist/bin
name="nanocode-${{ matrix.target }}"
if [ "${{ matrix.bin }}" = "nanocode.exe" ]; then
name="${name}.exe"
fi
cp target/${{ matrix.target }}/release/${{ matrix.bin }} dist/bin/${name}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: dist/bin/*
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: dist
- uses: softprops/action-gh-release@v2
with:
files: dist/**/*