Skip to content

Commit

Permalink
build(CI): improve ci jobs (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic authored Apr 1, 2024
1 parent cae2779 commit ffd1322
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:
jobs:
fmt:
runs-on: ubuntu-latest
name: nightly / fmt
name: fmt / nightly
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -41,7 +41,7 @@ jobs:
run: cargo fmt --check
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
name: clippy / ${{ matrix.toolchain }}
permissions:
contents: read
checks: write
Expand All @@ -65,7 +65,7 @@ jobs:
# https://doc.rust-lang.org/beta/unstable-book/language-features/doc-cfg.html which allows an
# API be documented as only available in some specific platforms.
runs-on: ubuntu-latest
name: nightly / doc
name: doc / nightly
steps:
- uses: actions/checkout@v4
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
jobs:

# Docker build for amd64
build_amd64:
name: amd64
docker-build-amd64:
runs-on: buildjet-4vcpu-ubuntu-2204
concurrency:
group: ${{ github.ref }}-docker-build-amd64
Expand All @@ -27,7 +26,7 @@ jobs:
- run: just docker-build-amd64

# Docker build for arm64
build_arm64:
docker-build-arm64:
runs-on: buildjet-4vcpu-ubuntu-2204-arm
concurrency:
group: ${{ github.ref }}-docker-build-arm64
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
name: manifest
runs-on: ubuntu-latest
needs: [ publish_amd64, publish_arm64 ]
if: (github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/dsp-meta-cmd'))
if: github.ref == 'refs/heads/main' || (github.event_name == 'create' && startsWith(github.ref, 'refs/tags/dsp-meta-cmd'))
outputs:
tag: ${{ steps.output_docker_image_tag.outputs.tag }}
steps:
Expand All @@ -84,7 +84,7 @@ jobs:
name: Trigger deployment to DEV
runs-on: ubuntu-latest
needs: publish_manifest
if: github.ref_name == 'main'
if: github.ref == 'refs/heads/main' || (github.event_name == 'create' && startsWith(github.ref, 'refs/tags/dsp-meta-cmd'))
steps:
- name: Trigger deployment to DEV
env:
Expand All @@ -99,6 +99,7 @@ jobs:
release-please:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || (github.event_name == 'create' && startsWith(github.ref, 'refs/tags/dsp-meta-cmd'))
steps:
- uses: google-github-actions/release-please-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ concurrency:
jobs:
required:
runs-on: ubuntu-latest
name: ubuntu / ${{ matrix.toolchain }}
name: test / ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
# run on stable and beta to ensure that tests won't break on the next version of the rust
Expand Down

0 comments on commit ffd1322

Please sign in to comment.