Skip to content

Commit 598b779

Browse files
authored
Merge pull request #21 from AetiasHax/0.7
Update to 0.7.0
2 parents 2b2c33e + dc46cb1 commit 598b779

34 files changed

Lines changed: 1059 additions & 407 deletions
Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,48 @@
1-
name: Release ds-rom
1+
name: Build
22

33
on:
4+
pull_request:
45
workflow_dispatch:
56

7+
env:
8+
RUSTFLAGS: -D warnings
9+
610
jobs:
7-
build:
11+
clippy:
12+
name: Clippy
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: clippy
22+
23+
- name: Cache Rust workspace
24+
uses: Swatinem/rust-cache@v2
25+
26+
- name: Clippy
27+
run: cargo clippy
28+
29+
fmt:
30+
name: Format
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Rust
37+
uses: dtolnay/rust-toolchain@nightly
38+
with:
39+
components: rustfmt
40+
41+
- name: Format
42+
run: cargo fmt --all --check
43+
44+
build-cli:
45+
name: Build ds-rom-cli
846
strategy:
947
matrix:
1048
include:
@@ -17,7 +55,6 @@ jobs:
1755
name: linux-x86_64
1856
target: x86_64-unknown-linux-gnu
1957
file: dsrom-linux-x86_64
20-
2158
runs-on: ${{ matrix.os }}
2259
steps:
2360
- name: Checkout code
@@ -54,9 +91,11 @@ jobs:
5491
name: dsrom-${{ matrix.name }}
5592
path: ${{ matrix.file }}
5693
if-no-files-found: error
57-
94+
5895
release:
59-
needs: build
96+
name: Release
97+
needs: build-cli
98+
if: startsWith(github.ref, 'refs/tags/')
6099
runs-on: ubuntu-latest
61100
permissions:
62101
contents: write

.gitignore

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/target
1+
/target/
22
*.nds
3-
/.vscode
4-
/*.bin
5-
/test
6-
/build.sh
7-
/build.ps1
3+
/.vscode/
4+
/temp/

0 commit comments

Comments
 (0)