Add a workflow for build artifacts and releases

Switch the target file to `FastVideoDS` to align with
other frontend's expected file name.
This commit is contained in:
lifehackerhansol 2022-09-30 10:45:25 -07:00 committed by Gericom
parent 47442d4659
commit d0ea2b603e
3 changed files with 66 additions and 1 deletions

33
.github/workflows/nightly.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build nightly
on:
push:
branches: ["*"]
paths-ignore:
- 'README.md'
pull_request:
branches: ["*"]
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
name: Build with Docker using devkitARM
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Make application
run: |
make
- name: Prepare for build publishing
run: |
mkdir -p ~/artifacts
cp -f FastVideoDS.nds ~/artifacts/
- name: Publish build to GH Actions
uses: actions/upload-artifact@v2
with:
path: ~/artifacts/*
name: build

32
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Build release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
name: Build with Docker using devkitARM
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Make application
run: |
make
- name: Prepare for build publishing
run: |
mkdir -p ~/artifacts
cp -f FastVideoDS.nds ~/artifacts/
- name: Publish build to GH Actions
uses: actions/upload-artifact@v2
with:
path: ~/artifacts/*
name: build
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
FastVideoDS.nds

View File

@ -5,7 +5,7 @@ ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
export TARGET := $(shell basename $(CURDIR))
export TARGET := FastVideoDS
export TOPDIR := $(CURDIR)
# specify a directory which contains the nitro filesystem