Skip to content

chore(deps): update serde crates #555

chore(deps): update serde crates

chore(deps): update serde crates #555

Workflow file for this run

name: Check then Build
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cache rust
uses: Swatinem/rust-cache@v2
- name: check fmt
run: cargo fmt --all --check
- name: check clippy
run: cargo clippy --no-deps -- -D warnings
- name: check build
run: cargo build
- name: check test
run: cargo test
changelog:
name: Changelog Check
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: Zomzog/changelog-checker@v1.3.0
with:
fileName: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
runs-on: ubuntu-latest
needs: [test]
strategy:
matrix:
impl: [poem-openapi, axum, actix, salvo, rocket, poem]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: duskmoon/httpbin-rs
flavor: |
suffix=-${{ matrix.impl }},onlatest=true
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=edge,branch=main
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
build-args: |
HTTPBIN_IMPL=httpbin-${{ matrix.impl }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=duskmoon/httpbin-rs:${{ steps.meta.outputs.tags }}
cache-to: type=inline