alt_enter_fix/.gitea/workflows/rust.yml
tommy 83b0a5878b
All checks were successful
Rust / build (push) Successful in 1m19s
Let's try building for windows using the action
2024-08-29 15:01:05 -04:00

33 lines
751 B
YAML

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: alt_enter_fix.exe
path: target/x86_64-pc-windows-gnu/release/alt_enter_fix.exe