From a526e59ea496a66c92eae0a5358dcb47c905eccf Mon Sep 17 00:00:00 2001 From: Oleksandr Prokhorenko Date: Wed, 26 Jul 2023 16:06:24 +0200 Subject: [PATCH] fix(ci): free space for linux build | NPG-0000 (#488) # Description - free space for Linux build - typo fix ## Type of change Please delete options that are not relevant. - [x] Bug fix (non-breaking change which fixes an issue) --- .github/pull_request_template.md | 2 +- .github/workflows/build.yml | 45 ++++++++++++++++++-------------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e752382f16..97b83729cb 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -30,7 +30,7 @@ Please also list any relevant details for your test configuration - Toolchain: - SDK: -**List of new dependecies**: _if applicable_ +**List of new dependencies**: _if applicable_ Provide a list of newly added dependencies in this PR, with the description of what are they doing and why do we need them. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b1cfe0139..86702fe0fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,23 +3,23 @@ name: Build on: push: branches: - - main + - main paths-ignore: - - '**.md' - - 'src/**/**.md' - - 'Makefiles/**' - - 'nix/**' - - 'book/**' + - "**.md" + - "src/**/**.md" + - "Makefiles/**" + - "nix/**" + - "book/**" pull_request: branches: - - main + - main paths-ignore: - - '**.md' - - 'book/**' - - 'src/**/**.md' - - 'Makefiles/**' - - 'nix/**' - - 'book/**' + - "**.md" + - "book/**" + - "src/**/**.md" + - "Makefiles/**" + - "nix/**" + - "book/**" env: RUST_LATEST_STABLE_VERSION: 1.65 @@ -30,10 +30,9 @@ env: CARGO_FLAGS: --verbose --locked SEGMENT_DOWNLOAD_TIMEOUT_MINS: 15 - jobs: cancel: - name: 'Cancel Previous Runs' + name: "Cancel Previous Runs" runs-on: ubuntu-latest timeout-minutes: 3 steps: @@ -62,8 +61,17 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - name: Install deps - run: - sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config + run: sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config + + - name: Free disk space + # https://github.com/actions/virtual-environments/issues/709 + run: | + sudo apt-get clean + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + df -h - name: Build on Linux run: cargo build --all-features ${{env.CARGO_FLAGS}} @@ -109,8 +117,7 @@ jobs: - name: Install dependencies working-directory: "C:\\${{ github.event.repository.name }}" - run: - choco install -y protoc openssl sqlite postgresql14 + run: choco install -y protoc openssl sqlite postgresql14 - name: Set PostgreSQL env variables working-directory: "C:\\${{ github.event.repository.name }}"