2024-10-20 05:28:57 +00:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-10-20 05:57:26 +00:00
|
|
|
branches: ["main"]
|
2024-10-20 05:28:57 +00:00
|
|
|
|
|
|
|
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
|