Skip to content

Commit

Permalink
Call cargo directly instead of using actions-rs/cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Oct 31, 2022
1 parent 24280ad commit 91a227c
Showing 1 changed file with 21 additions and 80 deletions.
101 changes: 21 additions & 80 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,14 @@ jobs:
override: true
components: rustfmt, clippy
- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
run: cargo build ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose
run: cargo test ${{ matrix.features }} --verbose

gdal_34:
name: "ci gdal-34"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,25 +78,13 @@ jobs:
override: true
components: rustfmt, clippy
- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
run: cargo build ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose
run: cargo test ${{ matrix.features }} --verbose

gdal_33:
name: "ci gdal-33"
Expand Down Expand Up @@ -138,25 +115,13 @@ jobs:
override: true
components: rustfmt, clippy
- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
run: cargo build ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose
run: cargo test ${{ matrix.features }} --verbose

gdal_32:
name: "ci gdal-32"
Expand Down Expand Up @@ -187,25 +152,13 @@ jobs:
override: true
components: rustfmt, clippy
- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
run: cargo build ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose
run: cargo test ${{ matrix.features }} --verbose

ubuntu_lts:
name: "ci ubuntu-lts"
Expand All @@ -230,22 +183,10 @@ jobs:
export CC="clang-9"
export CXX="clang++-9"
- name: Check with Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all --check
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets ${{ matrix.features }} -- -D warnings
run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }} --verbose
run: cargo build ${{ matrix.features }} --verbose
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }} --verbose
run: cargo test ${{ matrix.features }} --verbose

0 comments on commit 91a227c

Please sign in to comment.