mirror of
https://github.com/redstrate/LauncherTweaks.git
synced 2025-05-20 17:37:46 +00:00
44 lines
1 KiB
YAML
44 lines
1 KiB
YAML
name: Main
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/cache@v4
|
|
id: cache-deps
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install gcc-mingw-w64
|
|
- name: Build
|
|
run: cargo build --verbose --release --target x86_64-pc-windows-gnu
|
|
- name: Run clippy
|
|
run: cargo clippy --target x86_64-pc-windows-gnu
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: LauncherTweaks
|
|
path: |
|
|
LICENSE
|
|
README.md
|
|
target/x86_64-pc-windows-gnu/release/version.dll
|
|
if-no-files-found: error
|