usb: unify handling of length parameters #877
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: Continuous Integration | |
env: | |
# Specify the current Zig version MicroZig uses: | |
ZIG_VERSION: 0.11.0 | |
DEPLOYMENT_URL: "https://download.microzig.tech" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
generate-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-tags: true # required for "git describe" | |
fetch-depth: 0 | |
- name: Setup Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: ${{ env.ZIG_VERSION }} | |
- name: Install PIP packages | |
run: | | |
pip install -r tools/requirements.txt | |
- name: Generate and validate packages | |
run: | | |
./tools/bundle.py | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages | |
path: microzig-deploy/ | |
validate-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-tags: true # required for "git describe" | |
fetch-depth: 0 | |
- name: Setup Zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: ${{ env.ZIG_VERSION }} | |
- name: Install PIP packages | |
run: | | |
pip install -r tools/requirements.txt | |
- name: Generate packages | |
run: | | |
./tools/bundle.py --debug | |
- name: Spawn local web server | |
uses: Eun/http-server-action@v1 | |
with: | |
directory: "${{ github.workspace }}/microzig-deploy" | |
port: 8080 | |
content-types: | | |
{ | |
"gz": "application/gzip", | |
"json": "application/json" | |
} | |
- name: Validate examples | |
run: | | |
mkdir -p "${{ github.workspace }}/microzig-test" | |
./tools/validate-all-examples.sh --build-root "${{ github.workspace }}/microzig-test" |