@@ -25,12 +25,15 @@ jobs:
2525 with :
2626 # cargo-semver-checks needs the full git history to compare versions
2727 fetch-depth : 0
28-
28+
2929 - name : Install protobuf compiler
3030 run : |
3131 sudo apt-get update
3232 sudo apt-get install -y protobuf-compiler
33-
33+
34+ - name : Install `oas3-gen`
35+ run : cargo install oas3-gen
36+
3437 - name : Cache cargo registry
3538 uses : actions/cache@v4
3639 with :
4144 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4245 restore-keys : |
4346 ${{ runner.os }}-cargo-
44-
47+
4548 - name : Get latest version tag
4649 id : get-baseline
4750 run : |
5457 else
5558 # Extract version without 'v' prefix for comparison
5659 version=${latest_tag#v}
57-
60+
5861 # Check if version is >= 0.1.0 (using semver comparison)
5962 if printf '%s\n%s\n' "0.1.0" "$version" | sort -V | head -n1 | grep -q "^0\.1\.0$"; then
6063 echo "Found suitable baseline tag: $latest_tag (>= v0.1.0)"
@@ -66,14 +69,14 @@ jobs:
6669 echo "skip=true" >> $GITHUB_OUTPUT
6770 fi
6871 fi
69-
72+
7073 - name : Check semver compatibility
7174 if : steps.get-baseline.outputs.skip == 'false'
7275 uses : obi1kenobi/cargo-semver-checks-action@v2
7376 with :
7477 baseline-rev : ${{ steps.get-baseline.outputs.baseline_rev }}
7578 verbose : true
76-
79+
7780 - name : Semver check skipped
7881 if : steps.get-baseline.outputs.skip == 'true'
7982 run : |
8487 echo "3. Future changes will be checked against tagged versions"
8588 echo ""
8689 echo "Note: Semver checking starts from v0.1.0 as this indicates"
87- echo "the beginning of API stability commitments in Rust projects"
90+ echo "the beginning of API stability commitments in Rust projects"
0 commit comments