Actual initial commit
This commit is contained in:
32
.gitea/workflows/rust.yml
Normal file
32
.gitea/workflows/rust.yml
Normal file
@ -0,0 +1,32 @@
|
||||
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
|
Reference in New Issue
Block a user