From 38af30e4eb8eeb6ff337583e1eaae1d92a8bf791 Mon Sep 17 00:00:00 2001 From: iGxnon Date: Thu, 30 Nov 2023 22:57:41 +0800 Subject: [PATCH] chore: naming stuff Signed-off-by: iGxnon --- .../workflows/{docker.yml => docker_image.yml} | 18 +++++------------- .github/workflows/gen_release_note.yml | 3 ++- .github/workflows/merge_image.yml | 2 ++ 3 files changed, 9 insertions(+), 14 deletions(-) rename .github/workflows/{docker.yml => docker_image.yml} (87%) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker_image.yml similarity index 87% rename from .github/workflows/docker.yml rename to .github/workflows/docker_image.yml index 6257ad3d5..bdcb0c85d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker_image.yml @@ -1,4 +1,4 @@ -name: Docker +name: Push Docker Image on: workflow_dispatch: { } @@ -41,8 +41,8 @@ jobs: - name: Setup Custom Image for ${{ matrix.job.cross_image }} uses: docker/build-push-action@v2 with: - context: .github/scripts - file: .github/scripts/Dockerfile.${{ matrix.job.target }} + context: ci/cross + file: ci/cross/Dockerfile.${{ matrix.job.target }} tags: ${{ matrix.job.cross_image }}:latest load: true cache-from: type=gha @@ -54,16 +54,8 @@ jobs: toolchain: ${{ env.CI_RUST_TOOLCHAIN }} target: ${{ matrix.job.target }} - - uses: Swatinem/rust-cache@v2 - with: - cache-on-failure: true - key: '${{ matrix.job.target }}' - - - name: Install cross - uses: baptiste0928/cargo-install@v2 - with: - crate: cross - cache-key: '${{ matrix.job.target }}' + - name: Install cross from binary + uses: taiki-e/install-action@cross - name: Build Xline Binary run: | diff --git a/.github/workflows/gen_release_note.yml b/.github/workflows/gen_release_note.yml index 06f4255f3..05c15dcc4 100644 --- a/.github/workflows/gen_release_note.yml +++ b/.github/workflows/gen_release_note.yml @@ -1,9 +1,10 @@ +name: Milestone Closure + # Trigger the workflow on milestone events on: milestone: types: [closed] -name: Milestone Closure jobs: create-release-notes: runs-on: ubuntu-latest diff --git a/.github/workflows/merge_image.yml b/.github/workflows/merge_image.yml index 7c1c567a8..4b705545a 100644 --- a/.github/workflows/merge_image.yml +++ b/.github/workflows/merge_image.yml @@ -1,3 +1,5 @@ +name: Merge Multi-platform Image Manifests + on: workflow_call: inputs: