Skip to content

Use a better path for Verus #13

Use a better path for Verus

Use a better path for Verus #13

Workflow file for this run

name: verus
on: [push, pull_request, workflow_dispatch]
jobs:
verus:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: get Verus release info
id: verus-release-info
#uses: pozetroninc/[email protected]
uses: ./.github/actions/latest-github-release
with:
repository: verus-lang/verus
platform: x86-linux
- name: acquire verus
run: |
curl --proto '=https' --tlsv1.2 -LsSf ${{ steps.verus-release-info.outputs.url }} -o verus.zip; unzip verus.zip
- name: run Verus
working-directory: ./tasks
run: |
# Run `verus` on each file, collecting failures if any
ANYFAILED=""
for i in *.rs; do
echo -n "[verus] $i: "
if ~/verus-x86-linux/verus "$i" >/dev/null 2>/dev/null; then
echo "success"
else
echo "failed"
# Re-run `verus` on any failure just to display the actual output
~/verus-x86-linux/verus "$i" || true
ANYFAILED="$ANYFAILED $i"
fi
done
if [ -n "$ANYFAILED" ]; then
echo "Failed:$ANYFAILED"
exit 1
fi