Skip to content

OFStdIOStream: Implement color rounding #1675

OFStdIOStream: Implement color rounding

OFStdIOStream: Implement color rounding #1675

name: nintendo-switch
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: docker pull devkitpro/devkita64
- uses: actions/checkout@v4
- name: autogen.sh
run: ./autogen.sh
- name: configure
run: |
docker run \
-e DEVKITPRO=/opt/devkitpro \
-e PATH="/opt/devkitpro/devkitA64/bin:/opt/devkitpro/tools/bin:$PATH" \
-v "$PWD:/objfw" \
devkitpro/devkita64 \
sh -c 'cd /objfw && ./configure --host=aarch64-none-elf --with-nintendo-switch'
- name: make
run: |
docker run \
-e DEVKITPRO=/opt/devkitpro \
-e PATH="/opt/devkitpro/devkitA64/bin:/opt/devkitpro/tools/bin:$PATH" \
-v "$PWD:/objfw" \
devkitpro/devkita64 \
sh -c "cd /objfw && make -j$(nproc)"
- name: make tests.nro
run: |
docker run \
-e DEVKITPRO=/opt/devkitpro \
-e PATH="/opt/devkitpro/devkitA64/bin:/opt/devkitpro/tools/bin:$PATH" \
-v "$PWD:/objfw" \
devkitpro/devkita64 \
sh -c "cd /objfw/tests && make tests.nro"
- name: make install
run: |
docker run \
-e DEVKITPRO=/opt/devkitpro \
-e PATH="/opt/devkitpro/devkitA64/bin:/opt/devkitpro/tools/bin:$PATH" \
-v "$PWD:/objfw" \
devkitpro/devkita64 \
sh -c "cd /objfw && make install"
- name: Create objfw-tests
run: |
mkdir -p objfw-tests/objfw-tests
cp tests/tests.nro tests/testfile.txt objfw-tests/objfw-tests
- name: Upload objfw-tests
uses: actions/upload-artifact@v4
with:
name: Nintendo Switch Tests
path: objfw-tests