Files
file-srv-gui-v3/.gitea/workflows/build.yml
firewire 40e11f7776
Some checks failed
Build / Check (push) Successful in 25s
Build / Linux build (push) Failing after 25s
Actually check the package name instead of trusting some dumbass on stackoverflow
2026-03-20 12:45:22 -04:00

55 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: Linux 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: 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/target/x86_64-pc-windows-gnu/release/file-srv-gui-v3.exe file-srv-gui-v3-win.exe && mv target/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