Fix broken fragment references in spec #2065
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Build spec without warnings | |
run: ./scripts/build.sh --install | |
cddl: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Get cddl version | |
run: curl -s https://crates.io/api/v1/crates/cddl | python3 -c "import sys, json; print(json.load(sys.stdin)['crate']['max_stable_version'])" | tee cddl.txt | |
- name: "Cache rust binaries" | |
uses: actions/cache@v4 | |
id: cache-cddl | |
env: | |
cache-name: cache-cddl | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/git/db/ | |
~/.cargo/registry/cache/ | |
~/.cargo/registry/index/ | |
./target/ | |
key: cddl-${{ hashFiles('cddl.txt') }} | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Validate CDDL files | |
run: ./scripts/test.sh | |
- name: Archive CDDL files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cddl | |
path: "*.cddl" |