Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call cargo directly instead of using actions-rs/cargo #325

Merged
merged 2 commits into from
Oct 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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