fix(ci): install explicit rust-script version to mitigate CI failure: https://github.com/fornwall/rust-script/issues/42

This commit is contained in:
Federico Terzi 2021-12-11 16:31:57 +01:00
parent f062a8ec35
commit 38b4d437f3
2 changed files with 12 additions and 6 deletions

View File

@ -33,8 +33,9 @@ jobs:
cargo clippy -- -D warnings cargo clippy -- -D warnings
env: env:
MACOSX_DEPLOYMENT_TARGET: "10.13" MACOSX_DEPLOYMENT_TARGET: "10.13"
- name: Install cargo-make - name: Install rust-script and cargo-make
run: | run: |
cargo install rust-script --version "0.7.0"
cargo install --force cargo-make --version 0.34.0 cargo install --force cargo-make --version 0.34.0
- name: Run test suite - name: Run test suite
run: cargo make test-binary run: cargo make test-binary
@ -58,8 +59,9 @@ jobs:
run: | run: |
rustup component add clippy rustup component add clippy
cargo clippy -p espanso --features wayland -- -D warnings cargo clippy -p espanso --features wayland -- -D warnings
- name: Install cargo-make - name: Install rust-script and cargo-make
run: | run: |
cargo install rust-script --version "0.7.0"
cargo install --force cargo-make --version 0.34.0 cargo install --force cargo-make --version 0.34.0
- name: Run test suite - name: Run test suite
run: cargo make test-binary --env NO_X11=true run: cargo make test-binary --env NO_X11=true
@ -72,8 +74,9 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install target - name: Install target
run: rustup update && rustup target add aarch64-apple-darwin run: rustup update && rustup target add aarch64-apple-darwin
- name: Install cargo-make - name: Install rust-script and cargo-make
run: | run: |
cargo install rust-script --version "0.7.0"
cargo install --force cargo-make --version 0.34.0 cargo install --force cargo-make --version 0.34.0
- name: Build - name: Build
run: | run: |

View File

@ -59,8 +59,9 @@ jobs:
- name: Print target version - name: Print target version
run: | run: |
echo Using version ${{ needs.extract-version.outputs.espanso_version }} echo Using version ${{ needs.extract-version.outputs.espanso_version }}
- name: Install cargo-make - name: Install rust-script and cargo-make
run: | run: |
cargo install rust-script --version "0.7.0"
cargo install --force cargo-make --version 0.34.0 cargo install --force cargo-make --version 0.34.0
- name: Test - name: Test
run: cargo make test-binary --profile release run: cargo make test-binary --profile release
@ -126,8 +127,9 @@ jobs:
- name: Print target version - name: Print target version
run: | run: |
echo Using version ${{ needs.extract-version.outputs.espanso_version }} echo Using version ${{ needs.extract-version.outputs.espanso_version }}
- name: Install cargo-make - name: Install rust-script and cargo-make
run: | run: |
cargo install rust-script --version "0.7.0"
cargo install --force cargo-make --version 0.34.0 cargo install --force cargo-make --version 0.34.0
- name: Test - name: Test
run: cargo make test-binary --profile release run: cargo make test-binary --profile release
@ -166,8 +168,9 @@ jobs:
echo Using version ${{ needs.extract-version.outputs.espanso_version }} echo Using version ${{ needs.extract-version.outputs.espanso_version }}
- name: Install rust target - name: Install rust target
run: rustup update && rustup target add aarch64-apple-darwin run: rustup update && rustup target add aarch64-apple-darwin
- name: Install cargo-make - name: Install rust-script and cargo-make
run: | run: |
cargo install rust-script --version "0.7.0"
cargo install --force cargo-make --version 0.34.0 cargo install --force cargo-make --version 0.34.0
- name: Build - name: Build
run: cargo make create-bundle --profile release --env BUILD_ARCH=aarch64-apple-darwin run: cargo make create-bundle --profile release --env BUILD_ARCH=aarch64-apple-darwin