Skip to content

Update dependencies #719

Update dependencies

Update dependencies #719

Workflow file for this run

# This workflow will be triggered by a GitHub pull-request.
# It compiles the code to a release binary, create a Docker image containing
# the binary, and uploads the Docker image to our registry using the branch as
# the registry tag.
---
name: Build development image
on:
pull_request:
branches: ["*"]
env:
CARGO_TERM_COLOR: always
DISABLE_VERSION_CHECK: true
jobs:
build:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v3
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: "https://fiberplanebot:${{ secrets.PRIVATE_GITHUB_TOKEN }}@github.com/"
- uses: Swatinem/rust-cache@v2
- name: add rust components
run: |
rustup component add clippy
rustup component add rustfmt
- name: Check format
run: cargo fmt -- --check
- name: Build binary and tests
run: cargo build --bins --tests --release
- name: Lint code
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --release
- name: Run tests
run: cargo test --release
- name: Generate manifest
run: target/release/fp version -o json > manifest.json
- name: Upload fp
uses: actions/upload-artifact@v3
with:
name: fp
path: target/release/fp
if-no-files-found: error
retention-days: 1
- name: Upload manifest
uses: actions/upload-artifact@v3
with:
name: manifest.json
path: manifest.json
if-no-files-found: error
retention-days: 1