Skip to content

feat: Add rivet-mini packer, achieving 268 byte executable #29

feat: Add rivet-mini packer, achieving 268 byte executable

feat: Add rivet-mini packer, achieving 268 byte executable #29

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build project
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2025
- windows-2022
- windows-2019
toolchain:
- stable
- nightly
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cargo cache
uses: Swatinem/rust-cache@v2
- name: Setup ${{ matrix.toolchain }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
- name: Cargo pack
run: cargo pack
- name: Cargo clippy
run: cargo clippy --workspace --release -- -D warnings
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Test execution
run: |
$target = Get-Location
$job = Start-Job -ScriptBlock {
param ($target)
& "${target}\target\release\msrw.exe"
} -ArgumentList $target
$state = Wait-Job $job -Timeout 10
$out = Receive-Job $job
if ($out -ne "Hello World!") {
Throw "Output did not equal ``Hello World!``, got ``$out``."
}
- name: Get size
run: (Get-Item ".\target\release\msrw.exe").Length