-
Notifications
You must be signed in to change notification settings - Fork 28
97 lines (93 loc) · 3.53 KB
/
c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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@v4
- 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 }}"
make -f Makefile.miyoo ipk
- uses: actions/upload-artifact@v4
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@v4
with:
name: GMenu2X ZIP-Bundle (uClibc)
path: |
${{ inputs.submodule || '.' }}/dist/miyoo/
!${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x-debug
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
- uses: actions/upload-artifact@v4
with:
name: GMenu2X IPK-Package (uClibc)
path: |
${{ inputs.submodule || '.' }}/dist/gmenu2x-miyoo.ipk
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@v4
- 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 }}"
make -f Makefile.miyoo ipk
- uses: actions/upload-artifact@v4
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@v4
with:
name: GMenu2X ZIP-Bundle (musl)
path: |
${{ inputs.submodule || '.' }}/dist/miyoo/
!${{ inputs.submodule || '.' }}/dist/miyoo/gmenu2x-debug
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
- uses: actions/upload-artifact@v4
with:
name: GMenu2X IPK-Package (musl)
path: |
${{ inputs.submodule || '.' }}/dist/gmenu2x-miyoo.ipk
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`