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

Use rustup instead of actions-rs/toolchain #327

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Changes from all commits
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
76 changes: 49 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Install build deps
shell: bash
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
apt-get install build-essential curl pkg-config libclang-dev -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH

- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"

- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
run: |
rustup install --no-self-update --profile minimal stable
rustup component add rustfmt clippy

- name: Check with Rustfmt
run: cargo fmt --all --check
- name: Check with Clippy
Expand All @@ -63,20 +66,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Install build deps
shell: bash
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
apt-get install build-essential curl pkg-config libclang-dev -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH

- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"

- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
run: |
rustup install --no-self-update --profile minimal stable
rustup component add rustfmt clippy

- name: Check with Rustfmt
run: cargo fmt --all --check
- name: Check with Clippy
Expand All @@ -100,20 +106,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Install build deps
shell: bash
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
apt-get install build-essential curl pkg-config libclang-dev -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH

- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"

- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
run: |
rustup install --no-self-update --profile minimal stable
rustup component add rustfmt clippy

- name: Check with Rustfmt
run: cargo fmt --all --check
- name: Check with Clippy
Expand All @@ -137,20 +146,23 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Install build deps
shell: bash
run: |
apt-get update -y
apt-get install build-essential pkg-config libclang-dev -y
apt-get install build-essential curl pkg-config libclang-dev -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH

- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"

- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
run: |
rustup install --no-self-update --profile minimal stable
rustup component add rustfmt clippy

- name: Check with Rustfmt
run: cargo fmt --all --check
- name: Check with Clippy
Expand All @@ -171,17 +183,27 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install GDAL
- name: Install build deps
shell: bash
run: |
sudo apt-get update
sudo apt-get install libgdal-dev gdal-bin build-essential
sudo apt-get update -y
sudo apt-get install libgdal-dev gdal-bin build-essential curl pkg-config libclang-dev -y
export C_INCLUDE_PATH=/usr/include/gdal:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/include/gdal:$CPLUS_INCLUDE_PATH
sudo ldconfig
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH

- name: Setup building
run: |
export CC="clang-9"
export CXX="clang++-9"

- name: Install stable
run: |
rustup install --no-self-update --profile minimal stable
rustup component add rustfmt clippy

- name: Check with Rustfmt
run: cargo fmt --all --check
- name: Check with Clippy
Expand Down