Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 44 additions & 5 deletions .github/workflows/release.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,48 @@
name: Release ds-rom
name: Build

on:
pull_request:
workflow_dispatch:

env:
RUSTFLAGS: -D warnings

jobs:
build:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache Rust workspace
uses: Swatinem/rust-cache@v2

- name: Clippy
run: cargo clippy

fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

- name: Format
run: cargo fmt --all --check

build-cli:
name: Build ds-rom-cli
strategy:
matrix:
include:
Expand All @@ -17,7 +55,6 @@ jobs:
name: linux-x86_64
target: x86_64-unknown-linux-gnu
file: dsrom-linux-x86_64

runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
Expand Down Expand Up @@ -54,9 +91,11 @@ jobs:
name: dsrom-${{ matrix.name }}
path: ${{ matrix.file }}
if-no-files-found: error

release:
needs: build
name: Release
needs: build-cli
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
9 changes: 3 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/target
/target/
*.nds
/.vscode
/*.bin
/test
/build.sh
/build.ps1
/.vscode/
/temp/
Loading