Skip to content

Commit

Permalink
Create build-switch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dslatt authored Jun 13, 2024
1 parent 26faeba commit 4f95eee
Showing 1 changed file with 49 additions and 0 deletions.
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: [ "*" ]
pull_request:
types: [opened, reopened]
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.sh --root

- uses: actions/upload-artifact@v2
with:
name: nso-icon-tool
path: build_switch/nso-icon-tool.nro

0 comments on commit 4f95eee

Please sign in to comment.