From 6ca578816c67b3b1e84fa5725515457680cd9a35 Mon Sep 17 00:00:00 2001 From: "blacksmith-sh[bot]" <157653362+blacksmith-sh[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:46:27 -0800 Subject: [PATCH] chore: Migrate workflows to Blacksmith (#3194) Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> --- .github/workflows/benchmark_comment.yml | 2 +- .github/workflows/benchmark_pr_track.yml | 2 +- .github/workflows/build-website.yml | 2 +- .github/workflows/build_matrix.yml | 12 +++---- .github/workflows/ci.yml | 42 ++++++++++++------------ .github/workflows/labels.yml | 2 +- .github/workflows/lint.yml | 4 +-- .github/workflows/pr-convention.yml | 2 +- .github/workflows/release-drafter.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/spell-check.yml | 2 +- .github/workflows/stale.yml | 2 +- 12 files changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/benchmark_comment.yml b/.github/workflows/benchmark_comment.yml index e04229e8b0..8fc3d567d1 100644 --- a/.github/workflows/benchmark_comment.yml +++ b/.github/workflows/benchmark_comment.yml @@ -9,7 +9,7 @@ on: jobs: macro_benchmarks_comment: name: Benchmark comment on commit - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 if: > github.event.workflow_run.conclusion == 'success' steps: diff --git a/.github/workflows/benchmark_pr_track.yml b/.github/workflows/benchmark_pr_track.yml index 1f460a26ba..ff55501085 100644 --- a/.github/workflows/benchmark_pr_track.yml +++ b/.github/workflows/benchmark_pr_track.yml @@ -12,7 +12,7 @@ concurrency: jobs: micro_benchmarks_pr_track: if: github.event.workflow_run.conclusion == 'success' - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 env: BENCHMARK_RESULTS: benchmark_results.txt PR_EVENT: event.json diff --git a/.github/workflows/build-website.yml b/.github/workflows/build-website.yml index 72a1f36f03..7f2121a14b 100644 --- a/.github/workflows/build-website.yml +++ b/.github/workflows/build-website.yml @@ -7,7 +7,7 @@ on: jobs: build_website: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - name: Build website env: diff --git a/.github/workflows/build_matrix.yml b/.github/workflows/build_matrix.yml index 3e09d85b9a..555bc8239e 100644 --- a/.github/workflows/build_matrix.yml +++ b/.github/workflows/build_matrix.yml @@ -10,7 +10,7 @@ jobs: # IMPORTANT: in case of changing the structure of this file make sure to test # the changes against `npm/gen-root.ts` file setup-matrix: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 outputs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: @@ -33,34 +33,34 @@ jobs: ] include: - build: linux-x64-gnu - os: ubuntu-latest + os: blacksmith-4vcpu-ubuntu-2204 rust: stable target: x86_64-unknown-linux-gnu libc: glibc - build: linux-x64-musl - os: ubuntu-latest + os: blacksmith-4vcpu-ubuntu-2204 rust: stable target: x86_64-unknown-linux-musl libc: musl cross: true - build: linux-arm64-gnu - os: ubuntu-latest + os: blacksmith-4vcpu-ubuntu-2204 rust: stable target: aarch64-unknown-linux-gnu libc: glibc cross: true - build: linux-arm64-musl - os: ubuntu-latest + os: blacksmith-4vcpu-ubuntu-2204 rust: stable target: aarch64-unknown-linux-musl libc: musl cross: true - build: linux-ia32-gnu - os: ubuntu-latest + os: blacksmith-4vcpu-ubuntu-2204 rust: stable target: i686-unknown-linux-gnu libc: glibc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64f1eef074..dde4e8b632 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: check_if_build: name: Check if Build - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v4 @@ -40,7 +40,7 @@ jobs: test_aws_build: name: Test AWS Lambda Build if: github.event_name == 'pull_request' - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 defaults: run: working-directory: ./tailcall-aws-lambda @@ -52,7 +52,7 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install Python - uses: actions/setup-python@v5 + uses: useblacksmith/setup-python@v6 with: python-version: "3.12" @@ -64,7 +64,7 @@ jobs: test_wasm: name: Run Tests (WASM) - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 defaults: run: working-directory: ./tailcall-wasm @@ -76,7 +76,7 @@ jobs: target: wasm32-unknown-unknown - name: Install Node.js - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: "20.11.0" @@ -90,7 +90,7 @@ jobs: test_cf: name: Run Tests (Cloudflare) - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 defaults: run: working-directory: ./tailcall-cloudflare @@ -104,7 +104,7 @@ jobs: target: wasm32-unknown-unknown - name: Install Node.js - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: "20.11.0" @@ -116,7 +116,7 @@ jobs: test: name: Run Tests on ${{ matrix.build }} - runs-on: ${{ matrix.os || 'ubuntu-latest' }} + runs-on: ${{ matrix.os || 'blacksmith-4vcpu-ubuntu-2204' }} needs: setup_build_matrix strategy: fail-fast: false @@ -126,7 +126,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: "20.11.0" - name: Install Prettier @@ -142,7 +142,7 @@ jobs: - name: Cache NASM if: runner.os == 'Windows' - uses: actions/cache@v4 + uses: useblacksmith/cache@v5 with: path: | nasm-2.16.02 @@ -185,7 +185,7 @@ jobs: check-examples: name: Check Examples - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v4 - name: Set up Rust @@ -207,7 +207,7 @@ jobs: draft_release: name: Draft Release if: github.event_name == 'push' && github.ref == 'refs/heads/main' - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: contents: write pull-requests: write @@ -237,7 +237,7 @@ jobs: needs: [setup_build_matrix, test, draft_release, check_if_build, test_cf, test_wasm] # TODO: put a condition to separate job that other will depend on to remove duplication? if: github.event_name == 'push' && github.ref == 'refs/heads/main' && (needs.check_if_build.outputs.check_if_build == 'true') - runs-on: ${{ matrix.os || 'ubuntu-latest' }} + runs-on: ${{ matrix.os || 'blacksmith-4vcpu-ubuntu-2204' }} strategy: fail-fast: false matrix: ${{ fromJson(needs.setup_build_matrix.outputs.matrix) }} @@ -272,7 +272,7 @@ jobs: - name: Install Node.js if: (startsWith(github.event.head_commit.message, 'feat') || startsWith(github.event.head_commit.message, 'fix')) && (github.event_name == 'push' && github.ref == 'refs/heads/main') - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: 20.11.0 registry-url: https://registry.npmjs.org @@ -316,7 +316,7 @@ jobs: name: Release (AWS Lambda) needs: [test, draft_release, check_if_build, test_cf] if: github.event_name == 'push' && github.ref == 'refs/heads/main' && (needs.check_if_build.outputs.check_if_build == 'true') - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: contents: write pull-requests: write @@ -332,7 +332,7 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Install Python - uses: actions/setup-python@v5 + uses: useblacksmith/setup-python@v6 with: python-version: "3.12" @@ -360,7 +360,7 @@ jobs: name: Semantic Release if: (startsWith(github.event.head_commit.message, 'feat') || startsWith(github.event.head_commit.message, 'fix')) && (github.event_name == 'push' && github.ref == 'refs/heads/main') needs: [draft_release, release, release_lambda] - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: contents: write pull-requests: write @@ -380,12 +380,12 @@ jobs: name: Publish NPM main package needs: [draft_release, release] if: (startsWith(github.event.head_commit.message, 'feat') || startsWith(github.event.head_commit.message, 'fix')) && (github.event_name == 'push' && github.ref == 'refs/heads/main') - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - name: Checkout Current Branch (Fast) uses: actions/checkout@v4 - name: Install Node - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: 20.11.0 registry-url: https://registry.npmjs.org @@ -425,7 +425,7 @@ jobs: APP_VERSION: ${{ needs.draft_release.outputs.create_release_name }} # Ensure APP_VERSION is set correctly needs: [draft_release, release] if: (startsWith(github.event.head_commit.message, 'feat') || startsWith(github.event.head_commit.message, 'fix')) && (github.event_name == 'push' && github.ref == 'refs/heads/main') - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. permissions: contents: read @@ -468,7 +468,7 @@ jobs: permissions: contents: write pull-requests: write - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 016cb790f8..fa3663656a 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -9,7 +9,7 @@ on: jobs: label-sync: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c386752723..46778afd5f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,7 +17,7 @@ concurrency: jobs: lint: name: Run Formatter and Lint Check - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 permissions: pull-requests: write contents: write @@ -26,7 +26,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v4 + uses: useblacksmith/setup-node@v5 with: node-version: "20.11.0" - name: Install Prettier diff --git a/.github/workflows/pr-convention.yml b/.github/workflows/pr-convention.yml index 7492cd48cc..d319a0e8ed 100644 --- a/.github/workflows/pr-convention.yml +++ b/.github/workflows/pr-convention.yml @@ -12,7 +12,7 @@ permissions: jobs: title-check: name: Check PR Title - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - name: All PRs uses: amannn/action-semantic-pull-request@v5 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 59a7cfa8c8..f48360b4c0 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -18,7 +18,7 @@ jobs: permissions: contents: write pull-requests: write - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - uses: release-drafter/release-drafter@v6 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd3654e7e5..62e967add7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: deploy: name: Deploy App - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 concurrency: group: deploy-job cancel-in-progress: true diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 7e5708b558..dc34929602 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -19,7 +19,7 @@ on: jobs: check_spelling: name: Check spelling - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 22ea7987b7..07545a170c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,7 +14,7 @@ env: jobs: stale: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2204 steps: - uses: actions/stale@v9 with: