Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ on:
workflow_dispatch:

jobs:
# Ensure that the zig version found in build.zig.zon is present in the readme
readme-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- run: |
DOC_FILES="README.md website/content/docs/getting-started.smd"
EXIT_CODE=0
for FILE in $DOC_FILES
do
if ! grep -q $(cat build.zig.zon | sed -n 's/.*\.minimum_zig_version = "\(.*\)",/\1/p') $FILE
then
echo Zig version documented in \'$FILE'\ out of sync with build.zig.zon
EXIT_CODE=1
fi
done

exit $EXIT_CODE

lint:
runs-on: ubuntu-latest
permissions:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## What version of Zig to use

`0.17.0-dev.1471+ff10b90bc`
`0.17.0-dev.1936+5a625d5f3`

## Getting Started With MicroZig

Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/getting-started.smd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The main change is in your `build.zig`, where the board target should be
## Let's Begin

Quickly check that you have Zig master. You should see something like
`0.17.0-dev.1158+1d1193aa7` by running `zig version`.
`0.17.0-dev.1936+5a625d5f3` by running `zig version`.

Assuming you've initialized a zig project with `zig init`, or have set one up
yourself, you can add microzig as a dependency with the following command:
Expand Down
Loading