From 938f9b17f4bcdda4dcdc4e7dee304cb8b2658caf Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Tue, 22 Aug 2023 16:12:31 +0200 Subject: [PATCH 1/4] ci: use pl self-hosted runners for test --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c7b259ae..4b7194803 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: run: make check test: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }} steps: - name: Checking out uses: actions/checkout@v3 @@ -50,6 +50,7 @@ jobs: BUILD_FIL_NETWORK: ${{ matrix.network }} run: | cargo run --locked -- -o output/builtin-actors.car + coverage: runs-on: ubuntu-latest env: From d8ecf2a1e3f3eae76f992c23ea27472f96af1b1e Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Sat, 2 Sep 2023 16:38:56 +0200 Subject: [PATCH 2/4] ci: install rust on self-hosted --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b7194803..1a79fc1a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,8 @@ jobs: steps: - name: Checking out uses: actions/checkout@v3 + - if: env.RUNNER_ENVIRONMENT != 'github-hosted' + uses: dtolnay/rust-toolchain@stable - name: Running tests run: | cargo test --locked --all --no-fail-fast --exclude=fil_builtin_actors_bundle From a3ef13663880f6800a3dd0ce325d252e22ea1684 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Sat, 2 Sep 2023 17:47:33 +0200 Subject: [PATCH 3/4] ci: run coverage on self-hosted --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a79fc1a0..a8d7177b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,12 +54,14 @@ jobs: cargo run --locked -- -o output/builtin-actors.car coverage: - runs-on: ubuntu-latest + runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checking out uses: actions/checkout@v3 + - if: env.RUNNER_ENVIRONMENT != 'github-hosted' + uses: dtolnay/rust-toolchain@stable - name: Put LLVM tools into the PATH run: echo "$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/bin" >> $GITHUB_PATH - name: Install demangler From a87806055854fc0668c6ede175d9b051487f8dbf Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Sat, 2 Sep 2023 19:01:52 +0200 Subject: [PATCH 4/4] ci: use bigger self-hosted runners --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8d7177b4..dbabf036f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: run: make check test: - runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }} + runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }} steps: - name: Checking out uses: actions/checkout@v3 @@ -54,7 +54,7 @@ jobs: cargo run --locked -- -o output/builtin-actors.car coverage: - runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "2xlarge"]' || '"ubuntu-latest"') }} + runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: