Skip to content

Clean build - removed compiler warnings #1

Clean build - removed compiler warnings

Clean build - removed compiler warnings #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
name: Build release binaries
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact: aeonmi_project-linux-x86_64
bin_path: target/release/aeonmi_project
- os: windows-latest
artifact: aeonmi_project-windows-x86_64.exe
bin_path: target/release/aeonmi_project.exe
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build (release)
run: cargo build --release
- name: Package artifact
shell: bash
run: |
mkdir -p dist
cp "${{ matrix.bin_path }}" "dist/${{ matrix.artifact }}"
- name: Upload artifact to workflow
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: dist/${{ matrix.artifact }}
publish:
name: Publish GitHub Release
runs-on: ubuntu-latest
needs: build
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}