Skip to content

Commit

Permalink
Merge pull request #6 from gbdk-2020/sdcc-patched-sdcc-4.4.0
Browse files Browse the repository at this point in the history
Build: Update to Michel's SDCC 4.4.0 patch (GBDK 4.2-next)
  • Loading branch information
bbbbbr authored Jan 17, 2024
2 parents 695a972 + 3ba6864 commit e9b8861
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/sdcc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ on:
inputs:
sdcc_version_num:
description: 'SDCC Version Number (ex: 13911, 14089, 14228)'
default: '14228'
default: '14581'
required: true
type: string
sdcc_patch_file_url:
description: 'url for sdcc patch file ("none" without quotes for none) (-p0, sdcc dir as root)'
# default: 'https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/patches/gbdk-4.1.0-sdldz80-sms-virt-addr.patch'
# default: 'https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/patches/gbdk-4.2-nes_banked_v2_merged-patches'
# default: 'https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/patches/gbdk-4.2-nes_banked_nonbanked_v3_combined-patches'
default: 'https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/patches/gbdk-4.2-nes_banked_nonbanked_v4_combined.diff.patch'
# default: 'https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/patches/gbdk-4.2-nes_banked_nonbanked_v4_combined.diff.patch'
default: 'https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/patches/gbdk-4.2-nes_banked_nonbanked_no_overlay_locals_v6_combined.diff.patch'
type: string
jobs:
build:
Expand Down Expand Up @@ -94,10 +95,12 @@ jobs:
echo "Patch sdcc: no file specified"
else
echo "Patch sdcc: ${{ inputs.sdcc_patch_file_url }}"
cd sdcc-${{ env.SDCC_VER }}/sdcc
# cd sdcc-${{ env.SDCC_VER }}/sdcc
cd sdcc-${{ env.SDCC_VER }}
curl -Lo gbdk-sdcc-patch-file ${{ inputs.sdcc_patch_file_url }}
patch -p0 -f < gbdk-sdcc-patch-file
cd ../..
# cd ../..
cd ..
fi
# ==== Build SDCC Linux / MacOS ====
Expand Down

0 comments on commit e9b8861

Please sign in to comment.