Skip to content

prepare 0.2.2

prepare 0.2.2 #130

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
env:
CARGO_TERM_COLOR: always
GITHUB_REPOSITORY: raphamorim/rio
RUST_BACKTRACE: full
RUSTFLAGS: '-C link-arg=-s'
jobs:
release-macos:
runs-on: macos-latest
permissions:
contents: write
discussions: write
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain install stable --profile minimal
- run: rustup target add x86_64-apple-darwin aarch64-apple-darwin
- run: make release-macos
- name: Release version
uses: softprops/action-gh-release@v2
with:
append_body: true
token: ${{ secrets.GITHUB_TOKEN }}
files: |
release/macos-unsigned.zip
LICENSE
release-deb:
runs-on: ubuntu-latest
permissions:
contents: write
discussions: write
steps:
- uses: actions/checkout@v4
- name: rust cache
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
- run: sudo apt install rename
- run: rustup toolchain install stable --profile minimal
- run: cargo install cargo-deb
- run: mkdir -p release
- run: make release-debian-x11
- run: make release-debian-wayland
- name: Release
uses: softprops/action-gh-release@v1
with:
append_body: true
token: ${{ secrets.GITHUB_TOKEN }}
files: |
release/debian/x11/*
release/debian/wayland/*
release-windows:
runs-on: windows-latest
defaults:
run:
shell: bash
permissions:
contents: write
discussions: write
strategy:
matrix:
include:
- target: x86_64
wix-arch: x64
- target: aarch64
wix-arch: arm64
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
key: ${{matrix.target}}
- name: Install WiX
run: dotnet tool install --global wix --version 4.0.5
- run: wix --version
- run: wix extension add WixToolset.UI.wixext/4.0.5 WixToolset.Util.wixext/4.0.5
- run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }}-pc-windows-msvc
- run: cargo build --target ${{ matrix.target }}-pc-windows-msvc --release
- name: Crate msi installer
run: |
wix build -arch "${{ matrix.wix-arch}}" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \
-out "./Rio-installer-${{ matrix.target }}.msi" "misc/windows/rio-${{ matrix.target }}.wxs"
- run: cp ./target/${{ matrix.target }}-pc-windows-msvc/release/rio.exe ./Rio-portable-${{ matrix.target }}.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
append_body: true
token: ${{ secrets.GITHUB_TOKEN }}
files: |
./Rio-installer-${{ matrix.target }}.msi
./Rio-portable-${{ matrix.target }}.exe
publish-winget:
runs-on: windows-latest
needs: release-windows
defaults:
run:
shell: bash
permissions:
contents: write
discussions: write
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: raphamorim.rio
token: ${{ secrets.WINGET_TOKEN }}
installers-regex: '\.msi$' # Only .msi files