Files
file-srv-gui-v3/.gitea/workflows/build.yml
firewire 90cfd4012e
All checks were successful
Build / Check (push) Successful in 23s
Build / Build (push) Successful in 3m20s
Update readme
2026-03-20 12:58:26 -04:00

58 lines
1.6 KiB
YAML

on: [push, pull_request]
name: Build
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo check
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Adding cross compiler
run: rustup target add x86_64-pc-windows-gnu
- name: Apt update
run: sudo apt update
- name: Installing windows linker
run: sudo apt-get install mingw-w64 -y
- name: Build linux debug
run: cargo build
- name: Build linux release
run: cargo build --release
- name: Build windows debug
run: cargo build --target x86_64-pc-windows-gnu
- name: Build windows release
run: cargo build --release --target x86_64-pc-windows-gnu
- name: Renaming linux binaries
run: mv target/release/file-srv-gui-v3 file-srv-gui-v3-linux-amd64 && mv target/debug/file-srv-gui-v3 file-srv-gui-v3-linux-debug-amd64
- name: Renaming windows binaries
run: mv target/x86_64-pc-windows-gnu/release/file-srv-gui-v3.exe file-srv-gui-v3-win.exe && mv target/x86_64-pc-windows-gnu/debug/file-srv-gui-v3.exe file-srv-gui-v3-win-debug.exe
- uses: akkuman/gitea-release-action@v1
with:
files: |-
file-srv-gui-v3-linux-amd64
file-srv-gui-v3-linux-debug-amd64
file-srv-gui-v3-win.exe
file-srv-gui-v3-win-debug.exe