From 00639161a39ef8a11d15fbe3ff3246472b005d36 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Fri, 28 Feb 2025 07:53:08 -0800 Subject: [PATCH] fix(ci): upgrade deprecated runner (#2437) Signed-off-by: Derek Wang --- .github/workflows/changelog.yml | 6 +++--- .github/workflows/ci.yaml | 14 +++++++------- .github/workflows/gh-pages.yaml | 4 ++-- .github/workflows/nightly-build.yml | 4 ++-- .github/workflows/release.yml | 10 +++++----- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 8c0720e8a3..8c582742b9 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,7 +7,7 @@ on: jobs: generate_changelog: if: github.repository == 'numaproj/numaflow' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 name: Generate changelog steps: - uses: actions/checkout@v4 @@ -19,6 +19,6 @@ jobs: - run: ./hack/changelog.sh > CHANGELOG.md - uses: peter-evans/create-pull-request@v6 with: - title: 'docs: updated CHANGELOG.md' - commit-message: 'docs: updated CHANGELOG.md' + title: "docs: updated CHANGELOG.md" + commit-message: "docs: updated CHANGELOG.md" signoff: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a5a35fba4c..bb7f52867e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ on: jobs: ui: name: UI - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 6 steps: - name: Checkout code @@ -30,7 +30,7 @@ jobs: run: git diff --exit-code codegen: name: Codegen - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 5 steps: - name: Checkout code @@ -59,7 +59,7 @@ jobs: unit-tests: name: Unit Tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 10 services: redis: @@ -125,7 +125,7 @@ jobs: - name: Check Rust formatting working-directory: ./rust run: | - cargo fmt -- --check + cargo fmt -- --check - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4 @@ -136,7 +136,7 @@ jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 timeout-minutes: 10 env: GOPATH: /home/runner/go @@ -173,7 +173,7 @@ jobs: - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.5 - name: Install dependencies - run: sudo apt-get install -y protobuf-compiler + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Print Protoc version run: protoc --version - name: Build binary @@ -191,7 +191,7 @@ jobs: e2e-tests: name: E2E Tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: [build-rust-amd64] timeout-minutes: 20 strategy: diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 8d89476cb9..a96085d67f 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -11,7 +11,7 @@ on: jobs: docs: if: github.repository == 'numaproj/numaflow' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Setup Python @@ -21,7 +21,7 @@ jobs: - name: Setup Golang uses: actions/setup-go@v5 with: - go-version: '1.23' + go-version: "1.23" - name: build run: make docs - name: deploy diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 0204c81e33..605b9f31e2 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -59,7 +59,7 @@ jobs: - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.5 - name: Install dependencies - run: sudo apt-get install -y protobuf-compiler + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Build binary run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu - name: Rename binary @@ -92,7 +92,7 @@ jobs: - name: Run sccache-cache uses: mozilla-actions/sccache-action@v0.0.5 - name: Install dependenices - run: sudo apt-get install -y gcc-aarch64-linux-gnu protobuf-compiler + run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu protobuf-compiler - name: Build binary run: RUSTFLAGS='-C target-feature=+crt-static -C linker=aarch64-linux-gnu-gcc' cargo build --release --target aarch64-unknown-linux-gnu - name: Rename binary diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ae369de3d..06d43e14ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,7 +76,7 @@ jobs: with: rustflags: "" - name: Install dependenices - run: sudo apt-get install -y gcc-aarch64-linux-gnu protobuf-compiler + run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu protobuf-compiler - name: Build binary run: RUSTFLAGS='-C target-feature=+crt-static -C linker=aarch64-linux-gnu-gcc' cargo build --release --target aarch64-unknown-linux-gnu - name: Rename binary @@ -148,8 +148,8 @@ jobs: run: | IMAGE_NAMESPACE=${{ secrets.QUAYIO_ORG }} VERSION=${{ steps.version.outputs.VERSION }} DOCKER_PUSH=true make image-multi - Bom: - runs-on: ubuntu-latest + bom: + runs-on: ubuntu-24.04 if: github.repository == 'numaproj/numaflow' needs: [build-push-linux-multi] steps: @@ -176,8 +176,8 @@ jobs: name: sbom.tar.gz path: /tmp/sbom.tar.gz - Release: - runs-on: ubuntu-latest + release: + runs-on: ubuntu-24.04 if: github.repository == 'numaproj/numaflow' needs: [build-push-linux-multi, bom] steps: