File tree Expand file tree Collapse file tree
openmetrics_udpserver/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,15 +75,19 @@ jobs:
7575 toolchain : stable
7676 targets : ${{ matrix.platform.target }}
7777
78+ - name : Install Cargo Edit
79+ run : cargo install cargo-edit
80+
81+ - name : Set Crate Version
82+ run : cargo set-version ${{ steps.get_release_version.outputs.version }}
83+
7884 - name : Initialize Rust caching
7985 uses : Swatinem/rust-cache@v2
8086 with :
8187 key : ${{ matrix.platform.target }}
8288
8389 - name : Compile Binary
8490 uses : clechasseur/rs-cargo@v2
85- env :
86- BUILD_VERSION : ${{ steps.get_release_version.outputs.version }}
8791 with :
8892 command : build
8993 use-cross : true
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub static METRIC_COUNTER_REQUESTS: Lazy<Counter<u64>> = Lazy::new(Default::defa
2323pub static METRIC_COUNTER_ERRORS : Lazy < Counter < u64 > > = Lazy :: new ( Default :: default) ;
2424pub static METRIC_COUNTER_UDP_PACKETS : Lazy < Counter < u64 > > = Lazy :: new ( Default :: default) ;
2525
26- const VERSION : Option < & str > = option_env ! ( "BUILD_VERSION " ) ;
26+ const VERSION : Option < & str > = option_env ! ( "CARGO_PKG_VERSION " ) ;
2727
2828#[ tokio:: main]
2929async fn main ( ) -> anyhow:: Result < ( ) , anyhow:: Error > {
You can’t perform that action at this time.
0 commit comments