diff --git a/.github/workflows/build-switch-release.yml b/.github/workflows/build-switch-release.yml new file mode 100644 index 0000000..cceaed6 --- /dev/null +++ b/.github/workflows/build-switch-release.yml @@ -0,0 +1,47 @@ +name: Switch build + +on: + push: + branches: [ main ] + workflow_dispatch: + inputs: + nx: + description: build for nintendo switch + type: boolean + +permissions: + contents: write + +jobs: + build-nx: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + arch: [x86_64] + mode: [debug] + + runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, 'ci skip')" + container: devkitpro/devkita64 + + steps: + - name: Get current date as package key + id: cache_key + run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get -y install gcc + + - name: Build nso-icon-tool + run: ./proj_build_ci.sh --root + + - uses: actions/upload-artifact@v2 + with: + name: nso-icon-tool + path: build_switch/nso-icon-tool.nro diff --git a/.github/workflows/build-switch.yml b/.github/workflows/build-switch.yml new file mode 100644 index 0000000..684addb --- /dev/null +++ b/.github/workflows/build-switch.yml @@ -0,0 +1,49 @@ +name: Switch build + +on: + push: + branches: [ dev ] + pull_request: + types: [] + workflow_dispatch: + inputs: + nx: + description: build for nintendo switch + type: boolean + +permissions: + contents: write + +jobs: + build-nx: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + arch: [x86_64] + mode: [debug] + + runs-on: ${{ matrix.os }} + if: "!contains(github.event.head_commit.message, 'ci skip')" + container: devkitpro/devkita64 + + steps: + - name: Get current date as package key + id: cache_key + run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get -y install gcc + + - name: Build nso-icon-tool + run: ./proj_build_ci.sh --root + +# - uses: actions/upload-artifact@v2 +# with: +# name: nso-icon-tool +# path: build_switch/nso-icon-tool.nro diff --git a/.gitignore b/.gitignore index a8bcc07..3477577 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ build_switch/ .vscode/ .devcontainer/ -.github/ include/GLFW/ -include/version.h \ No newline at end of file +include/version.h diff --git a/proj_build_ci.sh b/proj_build_ci.sh new file mode 100755 index 0000000..ed04442 --- /dev/null +++ b/proj_build_ci.sh @@ -0,0 +1,4 @@ +#!/bin/bash +git config --global --add safe.directory /__w/nso-icon-tool/nso-icon-tool +cmake -B build_switch -DPLATFORM_SWITCH=ON +make -C build_switch nso-icon-tool.nro -j$(nproc) diff --git a/readme.md b/readme.md index d790348..83d4313 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ - +
@@ -33,16 +33,16 @@ ## Screenshot -![](./screenshots/1.jpg) +![](./screenshots/screenshot1.jpg)