diff --git a/.github/workflows/build_gba.yml b/.github/workflows/build_gba.yml new file mode 100644 index 000000000..64222a1d2 --- /dev/null +++ b/.github/workflows/build_gba.yml @@ -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 }}' diff --git a/.github/workflows/build_ios.yml b/.github/workflows/build_ios.yml index b88d2ce13..b3fd0672d 100644 --- a/.github/workflows/build_ios.yml +++ b/.github/workflows/build_ios.yml @@ -14,7 +14,7 @@ concurrency: jobs: build: timeout-minutes: 10 - runs-on: macOS-13 + runs-on: macOS-14 steps: - uses: actions/checkout@v4 - name: Compile iOS build diff --git a/src/Http_Worker.c b/src/Http_Worker.c index 62e96045f..eca0b7a55 100644 --- a/src/Http_Worker.c +++ b/src/Http_Worker.c @@ -492,6 +492,9 @@ static cc_result HttpClient_Process(struct HttpClientState* state, char* buffer, avail = state->dataLeft; 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); Http_BufferExpanded(req, read);