mirror of https://github.com/ClassiCube/ClassiCube
GBA: Add workflow, no website download though
This commit is contained in:
parent
482c8e1256
commit
14b5df3e2c
|
|
@ -0,0 +1,48 @@
|
||||||
|
name: Build latest (GBA)
|
||||||
|
# trigger via either push to selected branches or on manual run
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}-gba
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
timeout-minutes: 10
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: devkitpro/devkitarm:latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Compile GBA build
|
||||||
|
id: compile
|
||||||
|
run: |
|
||||||
|
make gba
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/upload_build
|
||||||
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
|
with:
|
||||||
|
SOURCE_FILE: 'ClassiCube-gba.gba'
|
||||||
|
DEST_NAME: 'ClassiCube-gba.gba'
|
||||||
|
|
||||||
|
- uses: ./.github/actions/upload_build
|
||||||
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
|
with:
|
||||||
|
SOURCE_FILE: 'ClassiCube-gba.elf'
|
||||||
|
DEST_NAME: 'ClassiCube-gba.elf'
|
||||||
|
|
||||||
|
|
||||||
|
# NOTE: Not uploaded to website downloads at present
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to produce GBA build'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
|
@ -14,7 +14,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
runs-on: macOS-13
|
runs-on: macOS-14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Compile iOS build
|
- name: Compile iOS build
|
||||||
|
|
|
||||||
|
|
@ -492,6 +492,9 @@ static cc_result HttpClient_Process(struct HttpClientState* state, char* buffer,
|
||||||
avail = state->dataLeft;
|
avail = state->dataLeft;
|
||||||
read = min(left, avail);
|
read = min(left, avail);
|
||||||
|
|
||||||
|
/* TODO figure out why this bug happens */
|
||||||
|
if (!req->data) Process_Abort("Http state broken, please report this");
|
||||||
|
|
||||||
Mem_Copy(req->data + req->size, buffer + offset, read);
|
Mem_Copy(req->data + req->size, buffer + offset, read);
|
||||||
Http_BufferExpanded(req, read);
|
Http_BufferExpanded(req, read);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue