Skip to content

Replace "favourite" with U.S. "favorite" #301

Replace "favourite" with U.S. "favorite"

Replace "favourite" with U.S. "favorite" #301

Workflow file for this run

name: CI Build
on:
push:
pull_request:
workflow_call:
inputs:
submodule:
description: The directory of the submodule, if this workflow is being called on a submodule
required: true
type: string
jobs:
build-legacy:
name: GMenu2X for MiyooCFW (uClibc)
runs-on: ubuntu-22.04
container:
image: miyoocfw/toolchain-shared-uclibc:master
steps:
- run: echo "submodule ${{ inputs.submodule }} on ${{ github.event }}"
- uses: actions/checkout@v3
- if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: generate commit sha
run: |
git config --global --add safe.directory /__w/gmenu2x/gmenu2x
cd ${{ inputs.submodule || '.' }}
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: commit
- name: build
run: |
cd ${{ inputs.submodule || '.' }}
make -f Makefile.miyoo dist COMMIT_HASH="${{ steps.commit.outputs.commit }}"
- uses: actions/upload-artifact@v3
with:
name: GMenu2X (uClibc)
path: |
${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x
${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x-debug
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
- uses: actions/upload-artifact@v3
with:
name: GMenu2X Bundle (uClibc)
path: |
${{ inputs.submodule || '.' }}/dist/miyoo/
!${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x-debug
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
build-modern:
name: GMenu2X for MiyooCFW (musl)
runs-on: ubuntu-22.04
container:
image: miyoocfw/toolchain-shared-musl:master
steps:
- run: echo "submodule ${{ inputs.submodule }} on ${{ github.event }}"
- uses: actions/checkout@v3
- if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: generate commit sha
run: |
git config --global --add safe.directory /__w/gmenu2x/gmenu2x
cd ${{ inputs.submodule || '.' }}
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: commit
- name: build
run: |
cd ${{ inputs.submodule || '.' }}
make -f Makefile.miyoo dist COMMIT_HASH="${{ steps.commit.outputs.commit }}"
- uses: actions/upload-artifact@v3
with:
name: GMenu2X (musl)
path: |
${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x
${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x-debug
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
- uses: actions/upload-artifact@v3
with:
name: GMenu2X Bundle (musl)
path: |
${{ inputs.submodule || '.' }}/dist/miyoo/
!${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x-debug
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`