You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB
YAML

9 months ago
name: Continuous Integration
env:
# Specify the current Zig version MicroZig uses:
ZIG_VERSION: 0.11.0
1 year ago
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
9 months ago
generate-packages:
runs-on: ubuntu-latest
1 year ago
steps:
- name: Checkout
9 months ago
uses: actions/checkout@v4
with:
fetch-tags: true # required for "git describe"
- name: Fetch more data from git
run: |
# fetch everything back till the $(ZIG_VERSION) tag.
9 months ago
# https://stackoverflow.com/a/58082274
git fetch --shallow-exclude ${{ env.ZIG_VERSION }}
9 months ago
git fetch --deepen=2
1 year ago
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
1 year ago
9 months ago
- name: Install PIP packages
run: |
pip install dataclasses_json==0.6.3 marshmallow typing-inspect semver pathspec
9 months ago
- name: Generate and validate packages
run: |
9 months ago
./tools/bundle.py
9 months ago
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: packages
path: microzig-deploy/