forked from maplibre/maplibre-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate and fix CI (maplibre#189)
* Dedublicate and fix CI * Set correct toolchain * Install binstall quicker * Add check for different arch
- Loading branch information
Showing
15 changed files
with
157 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: setup | ||
description: Setup | ||
|
||
|
||
inputs: | ||
nightly: | ||
required: false | ||
description: If true stable will be installed, if false nightly | ||
targets: | ||
required: false | ||
description: space separated list of rustc targets | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# The Rust version from rust-toolchain.toml is used for the first steps. Later the Rust version is changed | ||
# by setting another version in "Set XYZ toolchain". | ||
- name: Setup default toolchain | ||
shell: bash | ||
run: rustup show # Installs toolchain specified in rust-toolchain.toml | ||
- name: Install just | ||
uses: ./.github/actions/cargo-install | ||
with: | ||
name: just | ||
- name: Install stable toolchain | ||
if: ${{ !inputs.nightly }} | ||
shell: bash | ||
run: just stable-toolchain | ||
- name: Install nightly toolchain | ||
if: ${{ inputs.nightly }} | ||
shell: bash | ||
run: just nightly-toolchain | ||
# We are now setting the toolchains using override. That way e.g. Swatinem/rust-cache will pick up the right rustc | ||
# version | ||
- name: Set stable toolchain | ||
if: ${{ !inputs.nightly }} | ||
shell: bash | ||
run: just stable-override-toolchain | ||
- name: Set nightly toolchain | ||
if: ${{ inputs.nightly }} | ||
shell: bash | ||
run: just nightly-override-toolchain | ||
- name: Install targets | ||
if: ${{ inputs.targets && !inputs.nightly }} | ||
shell: bash | ||
run: just stable-targets ${{ inputs.targets }} | ||
- name: Install targets | ||
if: ${{ inputs.targets && inputs.nightly }} | ||
shell: bash | ||
run: just nightly-targets ${{ inputs.targets }} | ||
- uses: Swatinem/rust-cache@v2 | ||
# Install just again because Swatinem/rust-cache might removed it while restoring the cache | ||
- name: Install just | ||
uses: ./.github/actions/cargo-install | ||
with: | ||
name: just |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.