Skip to content

fix gihub actions v4 #18

fix gihub actions v4

fix gihub actions v4 #18

Workflow file for this run

name: NetSurf 3DS Build (Optimized + TLS-ready)
on:
push:
branches: [ main, master ]
pull_request: {}
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: devkitpro/devkitarm:latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install 3DS dependencies
run: |
dkp-pacman -S --needed --noconfirm \
3ds-sdl \
3ds-mbedtls \
3ds-curl \
3ds-libpng \
3ds-libjpeg-turbo \
3ds-libiconv \
3ds-freetype \
3ds-zlib
- name: Build (New 3DS optimized: fullheap-safe)

Check failure on line 33 in .github/workflows/build-3ds.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-3ds.yml

Invalid workflow file

You have an error in your yaml syntax on line 33
run: |
export CC=arm-none-eabi-gcc
export HOST=arm-none-eabi
export CFLAGS='-O2 -DNETSURF_USE_SAFE_FULLHEAP'
make TARGET=3ds HOST=arm-none-eabi CC=arm-none-eabi-gcc -j"$(nproc)"
make TARGET=3ds HOST=arm-none-eabi CC=arm-none-eabi-gcc bundle -j"$(nproc)"
- name: Inject CA bundle + mime.types (TLS fix)
run: |
mkdir -p stage
unzip bundle/resources.zip -d stage
mkdir -p stage/share/netsurf
curl -L https://curl.se/ca/cacert.pem -o stage/share/netsurf/ca-bundle.crt
curl -L https://raw.githubusercontent.com/nginx/nginx/master/conf/mime.types -o stage/share/netsurf/mime.types
(cd stage && zip -qr ../resources.patched.zip share)
mv resources.patched.zip bundle/resources.zip
- name: Upload 3DSX artifact
uses: actions/upload-artifact@v4
with:
name: netsurf-3dsx
path: bundle/netsurf-3dsx.zip
if-no-files-found: error
- name: Upload TLS-ready resources
uses: actions/upload-artifact@v4
with:
name: resources
path: bundle/resources.zip
if-no-files-found: error