mirror of
https://github.com/redstrate/LauncherTweaks.git
synced 2025-05-20 09:27:46 +00:00
Add basic CI (#1)
This commit is contained in:
parent
598882d100
commit
fe03f0db23
3 changed files with 46 additions and 1 deletions
44
.github/workflows/main.yml
vendored
Normal file
44
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
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
|
|
@ -8,7 +8,7 @@ Tweaks for the official FFXIV launcher.
|
|||
|
||||
## Usage
|
||||
|
||||
Build the project with the instructions below. Then, place the `version.dll` next to the launcher.
|
||||
Grab a build from [GitHub Actions](https://github.com/redstrate/LauncherTweaks/actions) or build the project with the instructions below. Then, place the `version.dll` next to the launcher.
|
||||
|
||||
To configure the launcher URL, place a `launchertweaks.toml` next to the launcher executable:
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
[toolchain]
|
||||
channel = "nightly"
|
||||
targets = [ "x86_64-pc-windows-gnu" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue