mouse-free-fishing/.gitea/workflows/rust.yml

33 lines
757 B
YAML
Raw Normal View History

2024-10-20 05:28:57 +00:00
name: Rust
on:
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "x86_64-pc-windows-gnu"
- name: Install cross compilation tools
run: sudo apt-get update && sudo apt-get install mingw-w64 -y
- name: Setup Cache
uses: Swatinem/rust-cache@v2
- name: Build release
run: cargo build --verbose --locked --release --target x86_64-pc-windows-gnu
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: mouse-free-fishing
path: target/x86_64-pc-windows-gnu/release/mouse-free-fishing.exe