Skip to content

Restore release workflow #4

Restore release workflow

Restore release workflow #4

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
ext: ""
- os: windows-latest
target: x86_64-pc-windows-msvc
ext: ".exe"
- os: macos-14
target: aarch64-apple-darwin
ext: ""
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
cp target/${{ matrix.target }}/release/nanocode${{ matrix.ext }} dist/bin/nanocode-${{ matrix.target }}${{ matrix.ext }}
- 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/**/*