Skip to content

chore: remove old todos related to wt8::CodePoint (#875) #86

chore: remove old todos related to wt8::CodePoint (#875)

chore: remove old todos related to wt8::CodePoint (#875) #86

Workflow file for this run

name: Build and Release Nova CLI
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.asset-name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# Linux (x86_64)
- os: ubuntu-latest
rust-target: x86_64-unknown-linux-gnu
asset-name: nova-linux-amd64
# Linux (ARM)
- os: ubuntu-24.04-arm
rust-target: aarch64-unknown-linux-gnu
asset-name: nova-linux-arm64
# macOS (Intel)
- os: macos-13
rust-target: x86_64-apple-darwin
asset-name: nova-macos-amd64
# macOS (Apple Silicon/ARM)
- os: macos-latest
rust-target: aarch64-apple-darwin
asset-name: nova-macos-arm64
# Windows
- os: windows-latest
rust-target: x86_64-pc-windows-msvc
asset-name: nova-windows-amd64.exe
steps:
- uses: actions/checkout@v3
- name: Install the rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.rust-target }}
- name: Build
run: cargo build --release --target ${{ matrix.rust-target }} --bin nova_cli
- name: Prepare binary
shell: bash
run: |
cd target/${{ matrix.rust-target }}/release/
if [ "${{ matrix.os }}" = "windows-latest" ]; then
mv nova_cli.exe ${{ matrix.asset-name }}
else
mv nova_cli ${{ matrix.asset-name }}
fi
- name: Upload Binary as Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset-name }}
path: target/${{ matrix.rust-target }}/release/${{ matrix.asset-name }}
release:
name: Create Release
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: Create Draft Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./artifacts/*/nova-*
file_glob: true
draft: true
tag: latest
overwrite: true