[WiP] moss: switch cli to use clap derive structs #3485
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2023 AerynOS Developers | |
| # SPDX-License-Identifier: MPL-2.0 | |
| name: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: '30 2 * * *' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| meta: | |
| runs-on: ubuntu-latest | |
| name: Non-code Checks | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| - name: Check for typos | |
| uses: crate-ci/typos@v1.48.0 | |
| - name: Check REUSE compliance | |
| uses: fsfe/reuse-action@v6.0.0 | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build & Test Project | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v7 | |
| - name: Install LLVM and Clang | |
| run: | | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 18 | |
| echo "/usr/lib/llvm-18/bin" >> $GITHUB_PATH | |
| echo "CC=/usr/lib/llvm-18/bin/clang" >> $GITHUB_ENV | |
| - name: Setup Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Check Formatting | |
| uses: actions-rust-lang/rustfmt@v1 | |
| - name: Build project | |
| run: cargo build --all | |
| - name: Test project | |
| run: cargo test --all --features moss/testing | |
| - name: Run clippy | |
| uses: giraffate/clippy-action@v1 | |
| with: | |
| reporter: 'github-pr-check' | |
| clippy_flags: --workspace --no-deps | |
| filter_mode: nofilter | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |