File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,6 +100,43 @@ jobs:
100100 env :
101101 CARGO_INCREMENTAL : " 0"
102102
103+ rust-msrv :
104+ name : Check MSRV
105+ runs-on : ubuntu-latest
106+ needs : changes
107+ if : needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
108+ steps :
109+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
110+
111+ - name : Read MSRV from Cargo.toml
112+ id : msrv
113+ run : |
114+ msrv=$(sed -n 's/^rust-version = "\(.*\)"$/\1/p' Cargo.toml)
115+ if [ -z "$msrv" ]; then
116+ echo "Could not find rust-version in workspace Cargo.toml" >&2
117+ exit 1
118+ fi
119+ echo "msrv=$msrv" >> "$GITHUB_OUTPUT"
120+ echo "MSRV: $msrv"
121+
122+ - uses : actions-rust-lang/setup-rust-toolchain@150fca883cd4034361b621bd4e6a9d34e5143606 # v1
123+ with :
124+ toolchain : ${{ steps.msrv.outputs.msrv }}
125+
126+ - name : Install Dependencies
127+ run : |
128+ sudo apt update -y
129+ sudo apt install -y libdbus-1-dev libxcb1-dev
130+
131+ - uses : Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
132+ with :
133+ key : msrv
134+
135+ - name : Check with MSRV toolchain
136+ run : cargo check --workspace --locked --all-targets
137+ env :
138+ CARGO_INCREMENTAL : " 0"
139+
103140 rust-lint :
104141 name : Lint Rust Code
105142 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ resolver = "2"
1010[workspace .package ]
1111edition = " 2021"
1212version = " 1.31.0"
13+ rust-version = " 1.91.1"
1314authors = [" AAIF <ai-oss-tools@block.xyz>" ]
1415license = " Apache-2.0"
1516repository = " https://github.com/aaif-goose/goose"
Original file line number Diff line number Diff line change 11[package ]
22name = " goose-acp-macros"
33edition.workspace = true
4+ rust-version.workspace = true
45version.workspace = true
56authors.workspace = true
67license.workspace = true
Original file line number Diff line number Diff line change 22name = " goose-cli"
33version.workspace = true
44edition.workspace = true
5+ rust-version.workspace = true
56authors.workspace = true
67license.workspace = true
78repository.workspace = true
Original file line number Diff line number Diff line change 22name = " goose-mcp"
33version.workspace = true
44edition.workspace = true
5+ rust-version.workspace = true
56authors.workspace = true
67license.workspace = true
78repository.workspace = true
Original file line number Diff line number Diff line change 22name = " goose-sdk"
33version.workspace = true
44edition.workspace = true
5+ rust-version.workspace = true
56authors.workspace = true
67license.workspace = true
78repository.workspace = true
Original file line number Diff line number Diff line change 22name = " goose-server"
33version.workspace = true
44edition.workspace = true
5+ rust-version.workspace = true
56authors.workspace = true
67license.workspace = true
78repository.workspace = true
Original file line number Diff line number Diff line change 11[package ]
22name = " goose-test-support"
33edition.workspace = true
4+ rust-version.workspace = true
45version.workspace = true
56authors.workspace = true
67license.workspace = true
Original file line number Diff line number Diff line change 11[package ]
22name = " goose-test"
33edition.workspace = true
4+ rust-version.workspace = true
45version.workspace = true
56authors.workspace = true
67license.workspace = true
Original file line number Diff line number Diff line change 22name = " goose"
33version.workspace = true
44edition.workspace = true
5+ rust-version.workspace = true
56authors.workspace = true
67license.workspace = true
78repository.workspace = true
You can’t perform that action at this time.
0 commit comments