Restore ak2loaders; add needed files #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: devkitpro/devkitarm | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Update System | |
run: | | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install -y python libc6:i386 libncurses5:i386 libstdc++6:i386 p7zip-full patch dos2unix libmpc-dev libelf-dev libfl-dev xfonts-utils | |
- name: Downgrade to devkitARM r32 | |
run: | | |
curl -LO "https://wii.leseratte10.de/devkitPro/devkitARM/r32%20(2010)/devkitARM-r32-linux_debian-buster.tar.gz" | |
rm -rf $DEVKITARM | |
tar xvzf devkitARM-r32-linux_debian-buster.tar.gz -C $DEVKITPRO | |
curl -LO "https://wii.leseratte10.de/devkitPro/libnds/libnds_1.4.8%20(2010)/libnds-1.4.8.tar.bz2" | |
rm -rf $DEVKITPRO/libnds | |
mkdir $DEVKITPRO/libnds | |
tar xvjf libnds-1.4.8.tar.bz2 -C $DEVKITPRO/libnds | |
curl -LO "https://wii.leseratte10.de/devkitPro/libfat/libfat_1.0.7%20(2010)/libfat-nds-1.0.7.tar.bz2" | |
tar xvjf libfat-nds-1.0.7.tar.bz2 -C $DEVKITPRO/libnds | |
rm libfat-nds-1.0.7.tar.bz2 | |
rm devkitARM-r32-linux_debian-buster.tar.gz | |
rm libnds-1.4.8.tar.bz2 | |
- name: make | |
run: | | |
export DEVKITPRO=/opt/devkitpro | |
export DEVKITARM=${DEVKITPRO}/devkitARM | |
export PORTLIBS_ROOT=${DEVKITPRO}/portlibs | |
export TOOL_PREFIX=arm-eabi- | |
export CC=${TOOL_PREFIX}gcc | |
export CXX=${TOOL_PREFIX}g++ | |
export AR=${TOOL_PREFIX}gcc-ar | |
export RANLIB=${TOOL_PREFIX}gcc-ranlibmake | |
export PATH=$PATH:${DEVKITPRO}/tools/bin:$DEVKITARM/bin | |
echo "[PATH printed below]" | |
echo $PATH | |
echo "OS INFO PRINTED" | |
lscpu | |
echo "Checking status on arm-eabi-gcc" | |
[ ! -f ${DEVKITARM}/bin/arm-eabi-gcc ] && echo "arm-eabi-gcc does not exist." | |
[ -f ${DEVKITARM}/bin/arm-eabi-gcc ] && echo "arm-eabi-gcc does indeed exist." | |
echo "SETTING PERMS" | |
chmod -R 777 ${DEVKITPRO} | |
echo "STARTING PERM CHECK" | |
echo "[ls on DKA/bin printed below]" | |
ls -l ${DEVKITARM}/bin | |
echo "[stat on DKA/bin printed below]" | |
stat ${DEVKITARM}/bin | |
echo "[stat on arm-eabi-gcc printed below]" | |
stat ${DEVKITARM}/bin/arm-eabi-gcc | |
chmod +x ${DEVKITARM}/bin/arm-eabi-gcc | |
echo "[attempt to run help command]" | |
${DEVKITARM}/bin/arm-eabi-gcc --help | |
echo "[attempt to run make command]" | |
chmod +x build.sh | |
chmod +x xenobox | |
./build.sh | |
- name: Prepare artifact | |
run: | | |
mkdir ~/artifacts | |
cp release/*.7z ~/artifacts/ | |
- name: Publish artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ~/artifacts/* | |
name: build |