try using dtolnay/rust-toolchain@stable to setup rust

This commit is contained in:
Salman Mohammed
2025-01-17 11:49:59 -05:00
parent 3ea942a872
commit fea5cd2574
3 changed files with 14 additions and 15 deletions
+7 -8
View File
@@ -28,26 +28,26 @@ jobs:
matrix:
os: ${{ fromJson(inputs.operating-systems) }}
architecture: ${{ fromJson(inputs.architectures) }}
include:
# These are the standard two OSes & suffixes you originally had:
- os: ubuntu-latest
target-suffix: unknown-linux-gnu
# If you want: define additional custom fields here as needed
- os: macos-latest
target-suffix: apple-darwin
steps:
- name: Checkout
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: ${{ matrix.architecture }}-${{ matrix.target-suffix }}
- name: Build CLI with cross
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build CLI
env:
CROSS_NO_WARNINGS: 0
run: |
@@ -55,7 +55,6 @@ jobs:
rustup target add "${TARGET}"
# 'cross' is used to cross-compile for different architectures (see Cross.toml)
cargo install cross --git https://github.com/cross-rs/cross
cross build --release --target ${TARGET} -p goose-cli
# tar the goose binary as goose-<TARGET>.tar.bz2
+3 -3
View File
@@ -33,8 +33,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: install-cli.sh
path: install-cli.sh
name: download_cli.sh
path: download_cli.sh
# ------------------------------------------------------------
# 3) Bundle Desktop App (macOS only) - builds goosed and Electron app
@@ -74,7 +74,7 @@ jobs:
artifacts: |
goose-*.tar.bz2
Goose*.zip
install-cli.sh
download_cli.sh
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
+4 -4
View File
@@ -29,8 +29,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/upload-artifact@v4
with:
name: install-cli.sh
path: install-cli.sh
name: download_cli.sh
path: download_cli.sh
# ------------------------------------------------------------
# 3) Bundle Desktop App (macOS only) - builds goosed and Electron app
@@ -69,7 +69,7 @@ jobs:
artifacts: |
goose-*.tar.bz2
Goose*.zip
install-cli.sh
download_cli.sh
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
@@ -86,7 +86,7 @@ jobs:
artifacts: |
goose-*.tar.bz2
Goose*.zip
install-cli.sh
download_cli.sh
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true