Skip to content

Avoid parsing the nca sections unless necessary #92

Avoid parsing the nca sections unless necessary

Avoid parsing the nca sections unless necessary #92

Workflow file for this run

on: [push, pull_request]
jobs:
main:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'windows']
include:
- job_name: linux
os: ubuntu-latest
shell: bash {0}
- job_name: windows
os: windows-latest
shell: msys2 {0}
defaults:
run:
shell: ${{ matrix.shell }}
name: main - ${{ matrix.job_name }}
runs-on: ${{ matrix.os }}
steps:
- uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
path-type: inherit
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-make
- run: choco install -y winfsp
if: matrix.os == 'windows-latest'
shell: powershell
- run: |
sudo apt install -y libfuse-dev libgcrypt-dev libre2-dev
if: matrix.os == 'ubuntu-latest'
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install meson ninja jsonschema jinja2
- run: meson setup build
- run: meson compile -C build -v
- uses: actions/upload-artifact@v4
if: failure()
with:
name: compile-log
path: build/meson-logs/meson-log.txt
bindings:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'windows']
include:
- job_name: linux
os: ubuntu-latest
shell: bash {0}
- job_name: windows
os: windows-latest
shell: msys2 {0}
defaults:
run:
shell: ${{ matrix.shell }}
name: bindings - ${{ matrix.job_name }}
runs-on: ${{ matrix.os }}
steps:
- uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-python-setuptools mingw-w64-x86_64-libgcrypt
- uses: actions/setup-python@v4
if: matrix.os == 'ubuntu-latest'
with:
python-version: '3.x'
- uses: actions/checkout@v3
- run: |
sudo apt install -y libgcrypt-dev
pip install -U setuptools
if: matrix.os == 'ubuntu-latest'
- run: python setup.py build