Ocean: fixes #11684
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "!v*" | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- feature/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
env: | |
TARGET: x86_64-pc-linux-gnu | |
MAKE_DEBUG: 0 | |
jobs: | |
generic: | |
name: Lint | |
runs-on: ubuntu-latest | |
env: | |
BUILD_VERSION: latest # Computed | |
GITHUB_PULL_REQUEST: ${{ github.event.number }} | |
PYTHON: 3.8 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint | |
run: ./ci/lint/main.sh | |
- name: Extended Lint | |
run: ./ci/extended_lint/main.sh | |
rust: | |
name: Rust Lint | |
runs-on: ubuntu-latest | |
container: defi/ain-builder:latest | |
env: | |
CARGO_INCREMENTAL: 0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: git config --global --add safe.directory '*' | |
- name: Populate environment | |
run: ./make.sh ci-export-vars | |
- name: Setup dependencies | |
run: ./make.sh ci-setup-deps | |
- name: Setup dependencies for user | |
run: ./make.sh ci-setup-user-deps | |
- name: Rust lint cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: lib -> ../build/lib/target | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
shared-key: lint | |
- name: Build depends and configure | |
run: ./make.sh build-deps && ./make.sh build-conf | |
- name: Format checks | |
run: ./make.sh lib fmt-check 1 | |
- name: Clippy checks | |
run: ./make.sh lib clippy 1 |