chore(release): prepare for v0.7.3 #98
This file contains hidden or 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: tests | |
| on: | |
| push: | |
| branches: [ "develop", "feat/**" ] | |
| pull_request: | |
| branches: [ "develop" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # The Nim version is pinned by flake.lock and nothing else. CI enters the flake rather than | |
| # installing a Nim of its own, so there is no second pin to drift out from under the | |
| # formatter -- and Lua comes from the same place the dev shell gets it. | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - name: Install dependencies | |
| run: nix develop .#ci --command nimble install -y --depsOnly | |
| - name: Format check | |
| run: | | |
| nix develop .#ci --command bash -c ' | |
| for f in $(find src tests -type f -name "*.nim" | sort); do | |
| cp "$f" "/tmp/fmt-$(basename "$f")" | |
| nimpretty "/tmp/fmt-$(basename "$f")" | |
| cmp -s "$f" "/tmp/fmt-$(basename "$f")" || { | |
| echo "::error file=$f::nimpretty needed on $f"; exit 1; } | |
| done' | |
| - name: Check | |
| run: nix develop .#ci --command nim check src/wing.nim | |
| - name: Test | |
| run: nix develop .#ci --command nimble test -y | |
| - name: Build | |
| run: nix develop .#ci --command nim c -d:release --out:wing src/wing.nim |