Skip to content

Commit

Permalink
add ci-test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dslatt committed Jun 14, 2024
1 parent 674b27c commit 4d7adb2
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 9 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-switch-release.yml
Original file line number Diff line number Diff line change
@@ -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
49 changes: 49 additions & 0 deletions .github/workflows/build-switch.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build_switch/
.vscode/
.devcontainer/
.github/
include/GLFW/
include/version.h
include/version.h
4 changes: 4 additions & 0 deletions proj_build_ci.sh
Original file line number Diff line number Diff line change
@@ -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)
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img src="https://img.shields.io/static/v1?label=version&message=0.1.0&labelColor=111111&color=06f&style=for-the-badge" alt="Version">
</a>
<a rel="BUILD" href="https://github.com/dslatt/nso-icon-tool/actions">
<img src="https://img.shields.io/github/actions/workflow/status/PoloNX/AtmoPackUpdater/c-cpp.yml?branch=master &labelColor=111111&color=06f&style=for-the-badge" alt=Build>
<img src="https://img.shields.io/github/actions/workflow/status/dslatt/nso-icon-tool/build-switch.yml?branch=master &labelColor=111111&color=06f&style=for-the-badge" alt=Build>
</a>
</p>

Expand All @@ -33,16 +33,16 @@

## Screenshot

![](./screenshots/1.jpg)
![](./screenshots/screenshot1.jpg)

<details>
<summary><b>More Screenshots</b></summary>

![](./screenshots/2.jpg)
![](./screenshots/3.jpg)
![](./screenshots/4.jpg)
![](./screenshots/5.jpg)
![](./screenshots/6.jpg)
![](./screenshots/screenshot2.jpg)
![](./screenshots/screenshot3.jpg)
![](./screenshots/screenshot4.jpg)
![](./screenshots/screenshot5.jpg)
![](./screenshots/screenshot6.jpg)

</details>

Expand Down
Binary file added screenshots/screenshot1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/screenshot2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/screenshot3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/screenshot4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/screenshot5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/screenshot6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d7adb2

Please sign in to comment.