Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
h1romas4 committed Jun 27, 2023
1 parent 5de20d6 commit cb4d589
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ insert_final_newline = true

[*.json]
indent_size = 2

[*.yml]
indent_size = 2
28 changes: 23 additions & 5 deletions .github/workflows/msx.yml → .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build
name: Build-Release

on:
push:
branches:
- main
workflow_call:
inputs:
release:
description: 'release'
type: boolean
required: true

jobs:
build:
Expand All @@ -12,11 +15,13 @@ jobs:
- uses: actions/checkout@v1
with:
submodules: recursive
token: ${{secrets.GITHUB_TOKEN}}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Z88DK Toolchain Setup
run: |
sudo snap install z88dk --beta
sudo apt install cmake ninja-build
- name: Build
run: |
export Z88DK_HOME=/snap/z88dk/current
Expand All @@ -26,3 +31,16 @@ jobs:
cd build
/usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/z88dk.cmake -GNinja ..
ninja
- name: Check
run: |
TARGET=dist/noborunoca.rom
ls -laF ${TARGET}
file ${TARGET} | grep 'MSX ROM' | grep '0x4010'
md5sum ${TARGET}
- uses: ncipollo/release-action@v1
if: ${{ inputs.release }}
with:
artifacts: "dist/noborunoca.rom"
token: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build

on:
push:
branches:
- main

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/build-release.yml
with:
release: false
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
build:
uses: ./.github/workflows/build-release.yml
with:
release: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# MSX Game "NOBORUNOCA"

![](https://github.com/h1romas4/noborunoca/workflows/Build/badge.svg)
![](https://github.com/h1romas4/noborunoca/workflows/Build/badge.svg) ![](https://github.com/h1romas4/noborunoca/workflows/Release/badge.svg)

![](https://raw.githubusercontent.com/h1romas4/noborunoca/main/docs/noborunoca-01.png)

🎮 [Let's Play! by WebMSX](https://webmsx.org/?MACHINE=MSX2J&ROM=https://github.com/h1romas4/noborunoca/releases/download/v1.0.0/noborunoca.rom)
🎮 [Let's Play! by WebMSX](https://webmsx.org/?MACHINE=MSX2J&ROM=https://github.com/h1romas4/noborunoca/releases/download/v1.0.1/noborunoca.rom)

📼 [YouTube Video](https://www.youtube.com/watch?v=SFgWwkPuj2M)

Expand Down

0 comments on commit cb4d589

Please sign in to comment.