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
15 changes: 0 additions & 15 deletions .clang-format

This file was deleted.

3 changes: 3 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
allowed-wildcard-imports = ["Mode"]
too-many-arguments-threshold = 11
too-many-lines-threshold = 150
34 changes: 0 additions & 34 deletions .github/workflows/merge.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pre-merge

on:
pull_request:
branches:
- main

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- name: Lint
run: cargo fmt --check && cargo clippy
- name: Test
run: cargo test
- name: Check
run: cargo check
28 changes: 17 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,36 @@ jobs:
release_macos:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-apple-darwin
- name: Build
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
run: |
make
zip -j superfamiconv_macos_${{ github.ref_name }}.zip build/release/superfamiconv README.md LICENSE
cargo build --release --target=aarch64-apple-darwin
cargo build --release --target=x86_64-apple-darwin
mkdir -p target/universal
lipo -create -output target/universal/superfamiconv target/x86_64-apple-darwin/release/superfamiconv target/aarch64-apple-darwin/release/superfamiconv
zip -j superfamiconv_macos_${{ github.ref_name }}.zip target/universal/superfamiconv README.md LICENSE
- name: Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: superfamiconv_macos_${{ github.ref_name }}.zip
release_win64:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
move build\Release\superfamiconv.exe superfamiconv.exe
cargo build --release
move target\release\superfamiconv.exe superfamiconv.exe
Compress-Archive -LiteralPath superfamiconv.exe, README.md, LICENSE -DestinationPath superfamiconv_win64_${{ github.ref_name }}.zip
- name: Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
files: superfamiconv_win64_${{ github.ref_name }}.zip
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.cache/
build/
/docs/
/test-data/
/target
.venv/
__pycache__/
*.pyc
docs/
out/
test_data/tmp/
4 changes: 4 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
edition = "2024"
max_width = 120
fn_params_layout = "Vertical"
newline_style = "Unix"
56 changes: 44 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/superfamiconv",
"args": [
],
"preLaunchTask": "${defaultBuildTask}",
}
]
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug ALL tests",
"cargo": {
"args": [
"test",
"--",
"--exact",
"--nocapture",
"--include-ignored",
],
"filter": {
"name": "superfamiconv",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug single test",
"cargo": {
"args": [
"test",
"image::tests::load_png_basic_indexed",
"--",
"--exact",
"--nocapture",
"--include-ignored",
],
"filter": {
"name": "superfamiconv",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

18 changes: 0 additions & 18 deletions .vscode/tasks.json

This file was deleted.

38 changes: 0 additions & 38 deletions CMakeLists.txt

This file was deleted.

Loading