Skip to content

Update rust.yml

Update rust.yml #83

Workflow file for this run

name: Rust CI and Release
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: cargo test --verbose
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Release_linux_x64 and Copy to assets
run: |
cargo build --release --verbose
mkdir -p assets/bin/linux_x64
cp target/release/wami assets/bin/linux_x64/wami
chmod +x assets/bin/linux_x64/wami
- name: Create Release Linux x64
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: assets/bin/linux_x64/wami
tag_name: linux_x64
name: Release Linux x64
body: This is the new release of the Linux x64 wami binary file
draft: false
prerelease: false