| 1 |
|
| 2 |
name: Nintendo DS |
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: [ master ] |
| 7 |
pull_request: |
| 8 |
|
| 9 |
jobs: |
| 10 |
_3ds: |
| 11 |
name: Nintendo 3DS |
| 12 |
runs-on: ubuntu-latest |
| 13 |
container: devkitpro/devkitarm |
| 14 |
steps: |
| 15 |
- name: Clone Project |
| 16 |
uses: actions/checkout@v3 |
| 17 |
|
| 18 |
- name: Extract Names from Makefile |
| 19 |
id: get_names |
| 20 |
run: | |
| 21 |
progname=`sed -E -n -e 's/^[[:blank:]]*PROGNAME[[:blank:]]+=[[:blank:]]+//p' src/Makefile.src || tr ' #' '\t\t' | tail -1 | cut -f 1` |
| 22 |
echo "progname=$progname" >> $GITHUB_OUTPUT |
| 23 |
|
| 24 |
- name: Build Nintendo 3DS (3dsx) |
| 25 |
shell: bash |
| 26 |
run: | |
| 27 |
pushd src/ |
| 28 |
make -f Makefile.3ds |
| 29 |
popd |
| 30 |
|
| 31 |
- name: Setup cxitool |
| 32 |
shell: bash |
| 33 |
run: | |
| 34 |
apt-get update && apt-get install -y build-essential automake autoconf autotools-dev |
| 35 |
git clone -b cxi-stuff https://github.com/devkitPro/3dstools/ |
| 36 |
pushd 3dstools/ |
| 37 |
./autogen.sh |
| 38 |
./configure |
| 39 |
make install |
| 40 |
popd |
| 41 |
|
| 42 |
- name: Setup makerom |
| 43 |
shell: bash |
| 44 |
run: | |
| 45 |
apt-get update && apt-get install -y build-essential libmbedtls-dev liblzma-dev libyaml-dev |
| 46 |
git clone https://github.com/3DSGuy/Project_CTR/ |
| 47 |
pushd Project_CTR/makerom |
| 48 |
make deps |
| 49 |
make |
| 50 |
cp -rv bin/makerom /usr/local/bin |
| 51 |
popd |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
- name: Build Nintendo 3DS (cia) |
| 58 |
shell: bash |
| 59 |
run: | |
| 60 |
progname='${{ steps.get_names.outputs.progname }}' |
| 61 |
procname=`echo "$progname" | head -c 8` |
| 62 |
pushd src/ |
| 63 |
cxitool --name "$procname" "$progname".3dsx "$progname".cxi |
| 64 |
makerom -v -f cia -o $"progname".cia -target t -i "$progname".cxi:0:0 -ignoresign -icon src/nds/icon.smdh |
| 65 |
popd |
| 66 |
|
| 67 |
blocksds: |
| 68 |
name: Nintendo DS (BlocksDS) |
| 69 |
runs-on: ubuntu-latest |
| 70 |
container: skylyrac/blocksds:slim-latest |
| 71 |
steps: |
| 72 |
- name: Clone Project |
| 73 |
uses: actions/checkout@v3 |
| 74 |
|
| 75 |
- name: Build |
| 76 |
shell: bash |
| 77 |
run: | |
| 78 |
pushd src/ |
| 79 |
make -f Makefile.blocksds |
| 80 |
popd |
| 81 |
|
| 82 |
nds: |
| 83 |
name: Nintendo DS |
| 84 |
runs-on: ubuntu-latest |
| 85 |
container: devkitpro/devkitarm |
| 86 |
steps: |
| 87 |
- name: Clone Project |
| 88 |
uses: actions/checkout@v3 |
| 89 |
|
| 90 |
- name: Build |
| 91 |
shell: bash |
| 92 |
run: | |
| 93 |
pushd src/ |
| 94 |
make -f Makefile.nds |
| 95 |
popd |