From 089d93341fac00d1592e3a337cb1536bac963e67 Mon Sep 17 00:00:00 2001 From: Joshua Parkin Date: Tue, 17 Oct 2023 15:22:14 +0100 Subject: [PATCH] go back to github runner but optimize build space before doing run --- .github/workflows/agent-language-tests.yml | 11 ++- .../direct-message-language-tests.yml | 11 ++- .../workflows/file-storage-language-tests.yml | 22 ++++- .github/workflows/integration_js.yml | 11 ++- .github/workflows/p-diff-sync-tests.yml | 88 +++++++++++++++---- .github/workflows/publish.yml | 56 +++++++++--- .github/workflows/publish_staging.yml | 54 +++++++++--- .../file-storage/.github/workflows/test.yml | 22 ++++- 8 files changed, 219 insertions(+), 56 deletions(-) diff --git a/.github/workflows/agent-language-tests.yml b/.github/workflows/agent-language-tests.yml index d3f89f491..a79c55b8a 100644 --- a/.github/workflows/agent-language-tests.yml +++ b/.github/workflows/agent-language-tests.yml @@ -16,14 +16,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/direct-message-language-tests.yml b/.github/workflows/direct-message-language-tests.yml index a37e582a8..3331c32da 100644 --- a/.github/workflows/direct-message-language-tests.yml +++ b/.github/workflows/direct-message-language-tests.yml @@ -16,14 +16,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/file-storage-language-tests.yml b/.github/workflows/file-storage-language-tests.yml index cdf71a55e..f1054735a 100644 --- a/.github/workflows/file-storage-language-tests.yml +++ b/.github/workflows/file-storage-language-tests.yml @@ -16,14 +16,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -63,14 +70,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/integration_js.yml b/.github/workflows/integration_js.yml index 6377b5608..298d49b07 100644 --- a/.github/workflows/integration_js.yml +++ b/.github/workflows/integration_js.yml @@ -13,14 +13,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/p-diff-sync-tests.yml b/.github/workflows/p-diff-sync-tests.yml index e88244bf6..3850ea13f 100644 --- a/.github/workflows/p-diff-sync-tests.yml +++ b/.github/workflows/p-diff-sync-tests.yml @@ -16,14 +16,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -46,14 +53,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -92,14 +106,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -139,14 +160,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -186,14 +214,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -234,14 +269,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -281,14 +323,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -328,14 +377,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8ef2cf508..b025db63b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,12 +7,19 @@ on: jobs: create-release: - runs-on: self-hosted - container: "ubuntu:22.04" + runs-on: ubuntu-22.04 outputs: upload_url: ${{ steps.create-release.outputs.upload_url }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v3 - name: setup node uses: actions/setup-node@v3 @@ -43,8 +50,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [18.17.0] needs: @@ -54,6 +60,14 @@ jobs: runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - name: Fetch source code uses: actions/checkout@v2 @@ -75,7 +89,7 @@ jobs: - run: rustup target add wasm32-unknown-unknown - name: install dependencies (ubuntu only) - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf protobuf-compiler @@ -110,7 +124,7 @@ jobs: - name: Upload Release Deb Asset id: upload-release-deb-asset - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -122,7 +136,7 @@ jobs: - name: Upload Release AppImage Asset id: upload-release-appimage-asset - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -134,7 +148,7 @@ jobs: - name: Upload Release AppImage Update Asset id: upload-release-appimage-asset-update - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -146,7 +160,7 @@ jobs: - name: Upload Release AppImage update sig Asset id: upload-release-appimage-asset-update-sig - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -158,7 +172,7 @@ jobs: - name: Upload Release AD4M CLI Linux Binary id: upload-release-linux-ad4m-cli-binary - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -344,9 +358,16 @@ jobs: asset_content_type: application/octet-stream npm-publish: - runs-on: self-hosted - container: "ubuntu:22.04" + runs-on: ubuntu-22.04 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v3 # Setup .npmrc file to publish to npm - name: Use Node.js 16.x @@ -395,9 +416,16 @@ jobs: crates-publish: - runs-on: self-hosted - container: "ubuntu:22.04" + runs-on: ubuntu-22.04 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/publish_staging.yml b/.github/workflows/publish_staging.yml index cabd34d09..814a1c25e 100644 --- a/.github/workflows/publish_staging.yml +++ b/.github/workflows/publish_staging.yml @@ -7,12 +7,19 @@ on: jobs: create-release: - runs-on: self-hosted - container: "ubuntu:22.04" + runs-on: ubuntu-22.04 outputs: upload_url: ${{ steps.create-release.outputs.upload_url }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v3 - name: setup node uses: actions/setup-node@v3 @@ -43,8 +50,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [18.17.0] needs: @@ -52,6 +58,14 @@ jobs: runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - name: Fetch source code uses: actions/checkout@v2 @@ -67,7 +81,7 @@ jobs: - run: rustup target add wasm32-unknown-unknown - name: install dependencies (ubuntu only) - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf protobuf-compiler @@ -119,7 +133,7 @@ jobs: - name: Upload Release Deb Asset id: upload-release-deb-asset - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -131,7 +145,7 @@ jobs: - name: Upload Release AppImage Asset id: upload-release-appimage-asset - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -143,7 +157,7 @@ jobs: - name: Upload Release AppImage Update Asset id: upload-release-appimage-asset-update - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -155,7 +169,7 @@ jobs: - name: Upload Release AppImage update sig Asset id: upload-release-appimage-asset-update-sig - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -167,7 +181,7 @@ jobs: - name: Upload Release AD4M CLI Linux Binary id: upload-release-linux-ad4m-cli-binary - if: matrix.platform == 'self-hosted' + if: matrix.platform == 'ubuntu-22.04' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -369,8 +383,16 @@ jobs: asset_content_type: application/octet-stream npm-publish: - runs-on: self-hosted + runs-on: ubuntu-22.04 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v3 # Setup .npmrc file to publish to npm - name: Use Node.js 16.x @@ -447,8 +469,16 @@ jobs: crates-publish: - runs-on: self-hosted + runs-on: ubuntu-22.04 steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: diff --git a/bootstrap-languages/file-storage/.github/workflows/test.yml b/bootstrap-languages/file-storage/.github/workflows/test.yml index 0080e307c..d7e8f0fd4 100644 --- a/bootstrap-languages/file-storage/.github/workflows/test.yml +++ b/bootstrap-languages/file-storage/.github/workflows/test.yml @@ -15,14 +15,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: @@ -54,14 +61,21 @@ jobs: strategy: matrix: - platform: [self-hosted] - container: ["ubuntu:22.04"] + platform: [ubuntu-22.04] node-version: [16.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.platform }} steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-andriod: 'true' + remove-haskell: 'true' - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: