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

workflows: disable cargo bundled libgit to avoid s390x OOM #878

Merged
merged 2 commits into from
Jun 7, 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
50 changes: 40 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
name: "Tests, stable toolchain"
runs-on: ubuntu-latest
strategy:
# Keep x86_64 jobs alive if s390x jobs fail
fail-fast: false
matrix:
arch:
- x86_64
Expand All @@ -47,7 +45,16 @@ jobs:
path: target/debug
key: deps-${{ runner.os }}-${{ matrix.arch }}-${{ env.INSTALLED_TOOLCHAIN }}
- name: Install dependencies
run: dnf install -y gcc openssl-devel cpio diffutils jq xz
run: dnf install -y gcc git-core openssl-devel cpio diffutils jq xz
- name: Configure cargo
run: |
# Avoid OOM on emulated s390x
# https://github.com/rust-lang/cargo/issues/10583
mkdir -p .cargo
cat >> .cargo/config.toml <<EOF
[net]
git-fetch-with-cli = true
EOF
- name: cargo build
run: cargo build
- name: cargo test
Expand All @@ -65,8 +72,6 @@ jobs:
name: "Tests, minimum supported toolchain"
runs-on: ubuntu-latest
strategy:
# Keep x86_64 jobs alive if s390x jobs fail
fail-fast: false
matrix:
arch:
- x86_64
Expand Down Expand Up @@ -94,7 +99,16 @@ jobs:
path: target/debug
key: deps-${{ runner.os }}-${{ matrix.arch }}-${{ env.INSTALLED_TOOLCHAIN }}
- name: Install dependencies
run: dnf install -y gcc openssl-devel cpio diffutils jq xz
run: dnf install -y gcc git-core openssl-devel cpio diffutils jq xz
- name: Configure cargo
run: |
# Avoid OOM on emulated s390x
# https://github.com/rust-lang/cargo/issues/10583
mkdir -p .cargo
cat >> .cargo/config.toml <<EOF
[net]
git-fetch-with-cli = true
EOF
- name: cargo build
run: cargo build
- name: cargo test
Expand All @@ -112,8 +126,6 @@ jobs:
name: "Lints, pinned toolchain"
runs-on: ubuntu-latest
strategy:
# Keep x86_64 jobs alive if s390x jobs fail
fail-fast: false
matrix:
arch:
- x86_64
Expand All @@ -135,7 +147,16 @@ jobs:
path: target/debug
key: deps-${{ runner.os }}-${{ matrix.arch }}-${{ env.INSTALLED_TOOLCHAIN }}-lints
- name: Install dependencies
run: dnf install -y gcc openssl-devel
run: dnf install -y gcc git-core openssl-devel
- name: Configure cargo
run: |
# Avoid OOM on emulated s390x
# https://github.com/rust-lang/cargo/issues/10583
mkdir -p .cargo
cat >> .cargo/config.toml <<EOF
[net]
git-fetch-with-cli = true
EOF
- name: cargo fmt (check)
run: cargo fmt -- --check -l
- name: cargo clippy (warnings)
Expand Down Expand Up @@ -171,7 +192,16 @@ jobs:
path: target/debug
key: deps-${{ runner.os }}-${{ matrix.arch }}-${{ env.INSTALLED_TOOLCHAIN }}
- name: Install dependencies
run: dnf install -y gcc openssl-devel cpio diffutils jq xz
run: dnf install -y gcc git-core openssl-devel cpio diffutils jq xz
- name: Configure cargo
run: |
# Avoid OOM on emulated s390x
# https://github.com/rust-lang/cargo/issues/10583
mkdir -p .cargo
cat >> .cargo/config.toml <<EOF
[net]
git-fetch-with-cli = true
EOF
- name: cargo build
run: cargo build
- name: cargo test
Expand Down