Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reworked Release Workflow. Updated Changeme. Added Windows Support. #26

Merged
merged 13 commits into from
Jun 1, 2024
Merged
88 changes: 42 additions & 46 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,55 @@ name: Release
on:
push:
tags:
- "*"
- v[0-9]+.*
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable]
body:
runs-on: ubuntu-latest
permissions:
contents: write

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master

- name: Install just
uses: taiki-e/install-action@just

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Setup build env for Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y musl-tools gcc
rustup target add x86_64-unknown-linux-musl

- name: Build for Linux
if: matrix.os == 'ubuntu-latest'
run: |
just build-release-linux
cp target/x86_64-unknown-linux-musl/release/tenere tenere-x86_64-linux-musl

- name: Build for macos
if: matrix.os == 'macos-latest'
run: |
rustup target add aarch64-apple-darwin
just build-release-macos
cp target/x86_64-apple-darwin/release/tenere tenere-x86_64-macos
cp target/aarch64-apple-darwin/release/tenere tenere-aarch64-macos

uses: actions/checkout@v4
- name: Extract release notes
if: matrix.os == 'ubuntu-latest'
uses: ffurrer2/extract-release-notes@v2
id: release_notes
uses: ffurrer2/extract-release-notes@v1
- name: Upload Body
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.release_notes }}

- name: Release
uses: softprops/action-gh-release@v1
build:
permissions:
contents: write
continue-on-error: true
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: aarch64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Target
run: rustup target add ${{ matrix.target }}
- name: Compile
run: cargo build --release --target ${{ matrix.target }}
- name: Zip Binary (windows)
if: runner.os == 'Windows'
run: Compress-Archive -Path ./target/${{ matrix.target }}/release/tenere.exe -DestinationPath tenere-${{ matrix.target }}.zip
- name: Tar Binary (linux)
if: runner.os != 'Windows'
run: tar -cJf tenere-${{ matrix.target }}.tar.xz ./target/${{ matrix.target }}/release/tenere
- name: Upload Binary
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.release_notes }}
files: "tenere*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56 changes: 43 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,31 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.11.1] 19/03/2024

## [unreleased]

### Added

* Windows executables to release.
* Windows config instructions.


### Changed

* Reworked release github workflow.


## [0.11.1] - 2024-03-19

### Changed

- Update the license to GPLv3
- Update the notification layout

## [0.11] 02/02/2024
## [0.11] - 2024-02-02

### Added

Expand All @@ -22,7 +37,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Remove borders for chat block

## [0.10] 27/01/2024
## [0.10] - 2024-01-27

### Added

Expand All @@ -34,7 +49,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Use model from the config file if defined

## [0.9] 01/11/2023
## [0.9] - 2023-11-01

### Features

Expand All @@ -44,33 +59,33 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Scroll bars

## [0.8] 20/08/2023
## [0.8] - 2023-08-20

### Features

- Stop the stream response with the key `t`
- Add scrollbar for the chat block

## [0.7] 12/08/2023
## [0.7] - 2023-08-12

### Features

- Support streamig responses for ChatGPT

## [0.6] 27/04/2023
## [0.6] - 2023-04-27

### Features

- display a spinner in the waiting message
- chatgpt url is configureable

## [0.5] 22/04/2023
## [0.5] - 2023-04-22

### Features

- Save the current chat or chat history to a file with the key `s`

## [0.4] 21/04/2023
## [0.4] - 2023-04-21

### Features

Expand All @@ -80,7 +95,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Change `ctrl+l` to `n` to start a new chat

## [0.3] 20/04/2023
## [0.3] - 2023-04-20

### Features

Expand All @@ -94,7 +109,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Remove mode block

## [0.2] 17/04/2023
## [0.2] - 2023-04-17

### Features

Expand All @@ -104,6 +119,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Fix the scrolling issue

## [0.1] 16/04/2023
## [0.1] - 2023-04-16

First release 🎉


[unreleased]: https://github.com/WyvernIXTL/ubilerntui/compare/v0.11.1...HEAD
[0.11.1]: https://github.com/pythops/tenere/compare/v0.11...v0.11.1
[0.11]: https://github.com/pythops/tenere/compare/v0.10...v0.11
[0.10]: https://github.com/pythops/tenere/compare/v0.9...v0.10
[0.9]: https://github.com/pythops/tenere/compare/v0.8...v0.9
[0.8]: https://github.com/pythops/tenere/compare/v0.7...v0.8
[0.7]: https://github.com/pythops/tenere/compare/v0.6...v0.7
[0.6]: https://github.com/pythops/tenere/compare/v0.5...v0.6
[0.5]: https://github.com/pythops/tenere/compare/v0.4...v0.5
[0.4]: https://github.com/pythops/tenere/compare/v0.3...v0.4
[0.3]: https://github.com/pythops/tenere/compare/v0.2...v0.3
[0.2]: https://github.com/pythops/tenere/compare/v0.1...v0.2
[0.1]: https://github.com/pythops/tenere/releases/tag/v0.1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Tenere can be configured using a TOML configuration file. The file should be loc

- Linux : `$HOME/.config/tenere/config.toml` or `$XDG_CONFIG_HOME/tenere/config.toml`
- Mac : `$HOME/Library/Application Support/tenere/config.toml`
- Windows: `~/AppData/Roaming/tenere/config.toml` *(Please create.)*

### General settings

Expand Down