Skip to content

Commit 21e9283

Browse files
author
nicos_backbase
committed
chore: fix formatting (yamllint)
1 parent c1ad9ca commit 21e9283

2 files changed

Lines changed: 103 additions & 103 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,26 @@ jobs:
7474
name: Code Coverage
7575
runs-on: ubuntu-latest
7676
steps:
77-
- name: Checkout code
78-
uses: actions/checkout@v5
79-
80-
- name: Install Rust
81-
uses: dtolnay/rust-toolchain@stable
82-
with:
83-
components: llvm-tools-preview
84-
85-
- name: Install cargo-llvm-cov
86-
uses: taiki-e/install-action@cargo-llvm-cov
87-
88-
- name: Generate code coverage
89-
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
90-
91-
- name: Upload coverage to Codecov
92-
uses: codecov/codecov-action@v4
93-
with:
94-
token: ${{ secrets.CODECOV_TOKEN }}
95-
files: lcov.info
96-
fail_ci_if_error: true
77+
- name: Checkout code
78+
uses: actions/checkout@v5
79+
80+
- name: Install Rust
81+
uses: dtolnay/rust-toolchain@stable
82+
with:
83+
components: llvm-tools-preview
84+
85+
- name: Install cargo-llvm-cov
86+
uses: taiki-e/install-action@cargo-llvm-cov
87+
88+
- name: Generate code coverage
89+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
90+
91+
- name: Upload coverage to Codecov
92+
uses: codecov/codecov-action@v4
93+
with:
94+
token: ${{ secrets.CODECOV_TOKEN }}
95+
files: lcov.info
96+
fail_ci_if_error: true
9797

9898
cross_platform:
9999
name: Cross Platform Build

.github/workflows/release.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -253,98 +253,98 @@ jobs:
253253
tag_name: ${{ needs.semantic-version.outputs.version_tag }}
254254
files: ${{ env.UNIVERSAL_ASSET }}
255255

256-
publish-crate:
257-
name: Publish to crates.io
258-
needs: [semantic-version, create-release, build-release, build-universal-macos]
256+
# publish-crate:
257+
# name: Publish to crates.io
258+
# needs: [semantic-version, create-release, build-release, build-universal-macos]
259+
# runs-on: ubuntu-latest
260+
# if: needs.semantic-version.outputs.changed == 'true' && github.event_name == 'push' && !contains(needs.semantic-version.outputs.version, 'alpha') && !contains(needs.semantic-version.outputs.version, 'beta') && !contains(needs.semantic-version.outputs.version, 'rc')
261+
262+
# steps:
263+
# - name: Checkout code
264+
# uses: actions/checkout@v5
265+
# with:
266+
# ref: main
267+
# fetch-depth: 1
268+
269+
# - name: Pull latest changes
270+
# run: git pull origin main
271+
272+
# - name: Install Rust
273+
# uses: dtolnay/rust-toolchain@stable
274+
275+
# - name: Cache dependencies
276+
# uses: Swatinem/rust-cache@v2
277+
278+
# - name: Publish to crates.io
279+
# run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
280+
docker-release:
281+
name: Build and Push Docker Image
282+
needs: [semantic-version, create-release]
259283
runs-on: ubuntu-latest
260-
if: needs.semantic-version.outputs.changed == 'true' && github.event_name == 'push' && !contains(needs.semantic-version.outputs.version, 'alpha') && !contains(needs.semantic-version.outputs.version, 'beta') && !contains(needs.semantic-version.outputs.version, 'rc')
261-
284+
if: needs.semantic-version.outputs.changed == 'true' && github.event_name == 'push'
262285
steps:
263286
- name: Checkout code
264-
uses: actions/checkout@v5
287+
uses: actions/checkout@v4
265288
with:
266289
ref: main
267290
fetch-depth: 1
268291

269292
- name: Pull latest changes
270293
run: git pull origin main
271294

272-
- name: Install Rust
273-
uses: dtolnay/rust-toolchain@stable
295+
- name: Set up Docker Buildx
296+
uses: docker/setup-buildx-action@v3
274297

275-
- name: Cache dependencies
276-
uses: Swatinem/rust-cache@v2
298+
- name: Log in to Docker Hub
299+
uses: docker/login-action@v3
300+
with:
301+
username: ${{ secrets.DOCKER_USERNAME }}
302+
password: ${{ secrets.DOCKER_PASSWORD }}
277303

278-
- name: Publish to crates.io
279-
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
280-
docker-release:
281-
name: Build and Push Docker Image
282-
needs: [semantic-version, create-release]
283-
runs-on: ubuntu-latest
284-
if: needs.semantic-version.outputs.changed == 'true' && github.event_name == 'push'
285-
steps:
286-
- name: Checkout code
287-
uses: actions/checkout@v4
288-
with:
289-
ref: main
290-
fetch-depth: 1
291-
292-
- name: Pull latest changes
293-
run: git pull origin main
294-
295-
- name: Set up Docker Buildx
296-
uses: docker/setup-buildx-action@v3
297-
298-
- name: Log in to Docker Hub
299-
uses: docker/login-action@v3
300-
with:
301-
username: ${{ secrets.DOCKER_USERNAME }}
302-
password: ${{ secrets.DOCKER_PASSWORD }}
303-
304-
- name: Log in to GitHub Container Registry
305-
uses: docker/login-action@v3
306-
with:
307-
registry: ghcr.io
308-
username: ${{ github.actor }}
309-
password: ${{ secrets.GITHUB_TOKEN }}
310-
311-
- name: Extract metadata for 0.x versions
312-
id: meta-prerelease
313-
if: startsWith(needs.semantic-version.outputs.version, '0.')
314-
uses: docker/metadata-action@v5
315-
with:
316-
images: |
317-
${{ secrets.DOCKER_USERNAME }}/repos
318-
ghcr.io/${{ github.repository }}
319-
tags: |
320-
type=semver,pattern={{version}},value=${{ needs.semantic-version.outputs.version }}
321-
type=raw,value=latest
322-
323-
- name: Extract metadata for 1.x+ versions
324-
id: meta-stable
325-
if: "!startsWith(needs.semantic-version.outputs.version, '0.')"
326-
uses: docker/metadata-action@v5
327-
with:
328-
images: |
329-
${{ secrets.DOCKER_USERNAME }}/repos
330-
ghcr.io/${{ github.repository }}
331-
tags: |
332-
type=semver,pattern={{version}},value=${{ needs.semantic-version.outputs.version }}
333-
type=semver,pattern={{major}}.{{minor}},value=${{ needs.semantic-version.outputs.version }}
334-
type=semver,pattern={{major}},value=${{ needs.semantic-version.outputs.version }}
335-
type=raw,value=latest
336-
337-
- name: Build and push Docker image
338-
uses: docker/build-push-action@v5
339-
with:
340-
context: .
341-
platforms: linux/amd64,linux/arm64
342-
push: true
343-
tags: ${{ steps.meta-prerelease.outputs.tags || steps.meta-stable.outputs.tags }}
344-
labels: ${{ steps.meta-prerelease.outputs.labels || steps.meta-stable.outputs.labels }}
345-
cache-from: type=gha
346-
cache-to: type=gha,mode=max
347-
provenance: false
348-
sbom: false
349-
build-args: |
350-
VERSION=${{ needs.semantic-version.outputs.version }}
304+
- name: Log in to GitHub Container Registry
305+
uses: docker/login-action@v3
306+
with:
307+
registry: ghcr.io
308+
username: ${{ github.actor }}
309+
password: ${{ secrets.GITHUB_TOKEN }}
310+
311+
- name: Extract metadata for 0.x versions
312+
id: meta-prerelease
313+
if: startsWith(needs.semantic-version.outputs.version, '0.')
314+
uses: docker/metadata-action@v5
315+
with:
316+
images: |
317+
${{ secrets.DOCKER_USERNAME }}/repos
318+
ghcr.io/${{ github.repository }}
319+
tags: |
320+
type=semver,pattern={{version}},value=${{ needs.semantic-version.outputs.version }}
321+
type=raw,value=latest
322+
323+
- name: Extract metadata for 1.x+ versions
324+
id: meta-stable
325+
if: "!startsWith(needs.semantic-version.outputs.version, '0.')"
326+
uses: docker/metadata-action@v5
327+
with:
328+
images: |
329+
${{ secrets.DOCKER_USERNAME }}/repos
330+
ghcr.io/${{ github.repository }}
331+
tags: |
332+
type=semver,pattern={{version}},value=${{ needs.semantic-version.outputs.version }}
333+
type=semver,pattern={{major}}.{{minor}},value=${{ needs.semantic-version.outputs.version }}
334+
type=semver,pattern={{major}},value=${{ needs.semantic-version.outputs.version }}
335+
type=raw,value=latest
336+
337+
- name: Build and push Docker image
338+
uses: docker/build-push-action@v5
339+
with:
340+
context: .
341+
platforms: linux/amd64,linux/arm64
342+
push: true
343+
tags: ${{ steps.meta-prerelease.outputs.tags || steps.meta-stable.outputs.tags }}
344+
labels: ${{ steps.meta-prerelease.outputs.labels || steps.meta-stable.outputs.labels }}
345+
cache-from: type=gha
346+
cache-to: type=gha,mode=max
347+
provenance: false
348+
sbom: false
349+
build-args: |
350+
VERSION=${{ needs.semantic-version.outputs.version }}

0 commit comments

Comments
 (0)