Apache DataFusion SQL Query Engine
ARROW-11085: [Rust] Migrated from action-rs to shell in github actions.
Jorge C. Leitao241511dcb355
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex 69483bcf86..cb7240b6f7 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -57,11 +57,11 @@ jobs:# and thus are specific for a particular OS, arch and rust version.path: /github/home/targetkey: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}-- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup default ${{ matrix.rust }}+ rustup component add rustfmt- name: Buildrun: |export CARGO_HOME="/github/home/.cargo"@@ -99,11 +99,11 @@ jobs:path: /github/home/target# this key equals the ones on `linux-build-lib` for re-usekey: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup default ${{ matrix.rust }}+ rustup component add rustfmt- name: Run testsrun: |export CARGO_HOME="/github/home/.cargo"@@ -150,11 +150,11 @@ jobs:path: /github/home/target# this key equals the ones on `linux-build-lib` for re-usekey: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup default ${{ matrix.rust }}+ rustup component add rustfmt- name: Run testsrun: |export CARGO_HOME="/github/home/.cargo"@@ -173,14 +173,13 @@ jobs:- uses: actions/checkout@v2with:submodules: true- # this particular action (and not cache@v2) is necessary to avoid build errors on mac due to caching- # (see its README)- - uses: Swatinem/rust-cache@v1- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt+ # TODO: this won't cache anything, which is expensive. Setup this action+ # with a OS-dependent path.+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup default ${{ matrix.rust }}+ rustup component add rustfmt- name: Run testsshell: bashrun: |@@ -215,11 +214,11 @@ jobs:path: /github/home/target# this key equals the ones on `linux-build-lib` for re-usekey: ${{ runner.os }}-${{ matrix.arch }}-target-cache-${{ matrix.rust }}- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt, clippy+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup default ${{ matrix.rust }}+ rustup component add rustfmt clippy- name: Run clippyrun: |export CARGO_HOME="/github/home/.cargo"@@ -278,11 +277,11 @@ jobs:- uses: actions/checkout@v2with:submodules: true- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- components: rustfmt+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup default ${{ matrix.rust }}+ rustup component add rustfmt clippy- name: Cache Cargouses: actions/cache@v2with:@@ -341,13 +340,12 @@ jobs:with:path: /github/home/targetkey: ${{ runner.os }}-${{ matrix.arch }}-target-wasm32-cache-${{ matrix.rust }}- - uses: actions-rs/toolchain@v1- with:- toolchain: ${{ matrix.rust }}- default: true- override: true- components: rustfmt- target: wasm32-unknown-unknown+ - name: Setup Rust toolchain+ run: |+ rustup toolchain install ${{ matrix.rust }}+ rustup override set ${{ matrix.rust }}+ rustup component add rustfmt+ rustup target add wasm32-unknown-unknown- name: Build arrow craterun: |export CARGO_HOME="/github/home/.cargo"