Skip to content

Merge InvArch into main and restructure workspace #362

Merge InvArch into main and restructure workspace

Merge InvArch into main and restructure workspace #362

Workflow file for this run

name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '.github/workflows/build.yml'
env:
CARGO_TERM_COLOR: always
jobs:
changed_files:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
with:
fetch-depth: 0
dir_names: true
dir_names_max_depth: 1
build [tinkernet]:

Check failure on line 31 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Checks

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 31, Col: 3): The identifier 'build [tinkernet]' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/build.yml (Line: 34, Col: 7): Unrecognized named-value: 'jobs'. Located at position 10 within expression: contains(jobs.changed_files.outputs.modified_files, 'tinkernet')
runs-on: ubuntu-latest
if:
contains(jobs.changed_files.outputs.modified_files, 'tinkernet')
steps:
- uses: actions/checkout@v2
- name: Setup for checks
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Build
working-directory: ./tinkernet
run: cargo build --verbose
- name: Run tests
working-directory: ./tinkernet
run: cargo test --verbose
- name: Run clippy
working-directory: ./tinkernet
run: cargo clippy -- -D warnings
- name: Run cargofmt
working-directory: ./tinkernet
run: cargo +stable fmt --all -- --check
build [invarch]:
runs-on: ubuntu-latest
if:
contains(jobs.changed_files.outputs.modified_files, 'invarch')
steps:
- uses: actions/checkout@v2
- name: Setup for checks
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Build
working-directory: ./invarch
run: cargo build --verbose
- name: Run tests
working-directory: ./invarch
run: cargo test --verbose
- name: Run clippy
working-directory: ./invarch
run: cargo clippy -- -D warnings
- name: Run cargofmt
working-directory: ./invarch
run: cargo +stable fmt --all -- --check