File tree 1 file changed +23
-0
lines changed 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -107,3 +107,26 @@ jobs:
107
107
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER : " qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
108
108
run : cd embedded && cargo run --target thumbv7m-none-eabi
109
109
110
+ Rust-Semverver :
111
+ runs-on : ubuntu-latest
112
+ steps :
113
+ - name : Cancel Previous Runs
114
+ uses : styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
115
+ with :
116
+ access_token : ${{ github.token }}
117
+ - uses : actions/checkout@v3
118
+ - name : Install Rust nightly-2022-05-16
119
+ uses : actions-rs/toolchain@v1
120
+ with :
121
+ profile : minimal
122
+ toolchain : nightly-2022-05-16
123
+ override : true
124
+ components : rustc-dev,llvm-tools-preview
125
+ - name : Install CMake
126
+ run : sudo apt-get install -y cmake
127
+ - name : Install Semverver
128
+ run : cargo +nightly-2022-05-16 install --git https://github.com/rust-lang/rust-semverver
129
+ - name : Enforce semantic versioning
130
+ run : cargo semver | tee semver_out
131
+ - name : Fetch the version in the manifest and check for semantic versioning errors
132
+ run : eval "current_version=$(grep -e '^version = .*$' Cargo.toml | cut -d ' ' -f 3)" && (head -n 1 semver_out | grep "\-> $current_version") || (echo "versioning mismatch" && return 1)
You can’t perform that action at this time.
0 commit comments