Files
Modrinth-plus/.gitea/workflows/build.yml
MrSphay 47f53f9c1e
All checks were successful
Build / verify (push) Successful in 25m42s
Codex Template Compliance / template-compliance (push) Successful in 7s
Add Modrinth env defaults to Gitea build
2026-05-04 00:21:04 +02:00

66 lines
1.6 KiB
YAML

name: Build
on:
push:
branches:
- main
- master
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
env:
MODRINTH_URL: https://modrinth.com/
MODRINTH_API_BASE_URL: https://api.modrinth.com/
MODRINTH_ARCHON_BASE_URL: https://archon.modrinth.com/
MODRINTH_API_URL: https://api.modrinth.com/v2/
MODRINTH_API_URL_V3: https://api.modrinth.com/v3/
MODRINTH_SOCKET_URL: wss://api.modrinth.com/
MODRINTH_LAUNCHER_META_URL: https://launcher-meta.modrinth.com/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.0
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
- name: Install Tauri Linux prerequisites
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Frontend lint
run: pnpm --filter @modrinth/app-frontend run lint
- name: Rust format
run: cargo fmt --check
- name: Rust clippy
run: cargo clippy --package theseus --all-targets -- -D warnings