Add reset option to settings #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: fmt | |
| run: cargo fmt --all -- --check | |
| - name: clippy | |
| run: cargo clippy --all-targets -- -D clippy::all | |
| build_and_release: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: check | |
| name: Build and Release | |
| runs-on: macOS-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: setup | |
| run: | | |
| cargo install agb-gbafix | |
| - name: build | |
| run: cargo build --release | |
| - name: build gba | |
| run: agb-gbafix target/thumbv4t-none-eabi/release/nonogram_advance -o nonogram_advance.gba -tNonogramAdv -cNOA1 -mEB -r092 | |
| - uses: softprops/action-gh-release@v1 | |
| with: | |
| files: nonogram_advance.gba | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |