filesorters/.forgejo/workflows/build.yml
Vladimir Rubin 38320fcb5e
All checks were successful
Build and Upload filesorters Binaries / Build for Linux (push) Successful in -6m53s
ci: remove caching
because for some reason my forgejo caches ain't working
2024-12-30 19:44:55 +02:00

60 lines
1.5 KiB
YAML

name: Build and Upload filesorters Binaries
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-linux:
name: Build for Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: https://github.com/dtolnay/rust-toolchain@stable
# - name: Cache Rust dependencies
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# ${{ runner.os }}-cargo-
- name: Build for Linux
run: cargo build --release
- name: Upload Linux artifact
uses: forgejo/upload-artifact@v4
with:
name: linux-binary
path: target/release/filesorters
# build-windows:
# name: Build for Windows
# runs-on: ubuntu-latest-root
#
# steps:
# - uses: actions/checkout@v4
#
# - name: Install Rust
# uses: https://github.com/dtolnay/rust-toolchain@stable
#
# - name: Install cross
# run: cargo install cross
#
# - name: Build for Windows
# run: cross build --release --target x86_64-pc-windows-gnu
#
# - name: Upload Windows artifact
# uses: forgejo/upload-artifact@v4
# with:
# name: windows-binary
# path: target/x86_64-pc-windows-gnu/release/filesorters.exe