11name : Cache CC65
2- description : Caches CC65 and builds it from source if missing. (C) jroweboy (MIT). Modified to use MSYS2 for Windows binaries. (C) Persune 2025
2+ description : Caches CC65 and builds it from source if missing. (C) jroweboy (MIT). Modified to use MSYS2 for Windows binaries. (C) Persune 2026
33inputs :
44 cc65Ref :
55 description : " CC65 Git Ref (used to checkout a fixed version)"
66 required : false
7- default : " b8211a2921b11b045db0dd0d9ead6972c9b7bbf1 "
7+ default : " cc3c40c54e51b2d9a22b63c85c418a2b11763377 "
88 cc65Path :
99 description : " CC65 path to cache"
1010 required : false
1111 default : ${{ github.workspace }}\opt\cc65
1212runs :
1313 using : " composite"
1414 steps :
15- # Cache CC65
16- - uses : actions/cache@master
15+ - name : Cache CC65
16+ uses : actions/cache@master
1717 id : cache_cc65
1818 with :
1919 path : ${{ inputs.cc65Path }}
2020 key : ${{ runner.os }}-cc65-${{ inputs.cc65Ref }}-${{ hashFiles('.github/actions/cache_cc65/*') }}
21- # setup msys2
22- - uses : msys2/setup-msys2@v2
21+ - name : Setup msys2
22+ uses : msys2/setup-msys2@v2
2323 if : steps.cache_cc65.outputs.cache-hit != 'true'
2424 with :
2525 msystem : UCRT64
2626 install : |
2727 make
2828 mingw-w64-ucrt-x86_64-gcc
2929 cache : true
30- # Checkout CC65
31- - uses : actions/checkout@master
30+ - name : Checkout CC65
31+ uses : actions/checkout@master
3232 if : steps.cache_cc65.outputs.cache-hit != 'true'
3333 with :
3434 repository : cc65/cc65
3535 ref : ${{ inputs.cc65Ref }}
3636 path : ' ./cc65'
37- # Build CC65
38- - if : steps.cache_cc65.outputs.cache-hit != 'true'
37+ - name : Build CC65
38+ if : steps.cache_cc65.outputs.cache-hit != 'true'
3939 run : |
4040 cd cc65
41- PREFIX=$(cygpath -u "${{ inputs.cc65Path }}") make
41+ PREFIX=$(cygpath -u "${{ inputs.cc65Path }}") make -j10
4242 PREFIX=$(cygpath -u "${{ inputs.cc65Path }}") make install
4343 shell : msys2 {0}
44- # Add CC65 binaries to path
45- - run : |
44+ - name : Add CC65 binaries to path
45+ run : |
4646 echo "${{ inputs.cc65Path }}\bin" >> $GITHUB_PATH
4747 shell : cmd
0 commit comments