From: Dan Nicholson Date: Fri, 18 Jun 2021 17:00:16 +0000 (-0600) Subject: ci: Rename GitHub Actions rust workflow metadata file X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~3^2~7^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ff141fe80f145862c947c3a25d9367c01ebe43c;p=ostree.git ci: Rename GitHub Actions rust workflow metadata file This workflow is specific to using rust and not just the general test suite. --- diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 00000000..70233b8e --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,27 @@ +--- +name: Rust +on: + push: + branches: [main] + pull_request: + branches: [main] + +env: + CARGO_TERM_COLOR: always + ACTIONS_LINTS_TOOLCHAIN: 1.50.0 + +jobs: + linting: + name: "Lints, pinned toolchain" + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }} + default: true + components: rustfmt, clippy + - name: cargo fmt (check) + run: cargo fmt -- --check -l diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 70233b8e..00000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Rust -on: - push: - branches: [main] - pull_request: - branches: [main] - -env: - CARGO_TERM_COLOR: always - ACTIONS_LINTS_TOOLCHAIN: 1.50.0 - -jobs: - linting: - name: "Lints, pinned toolchain" - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }} - default: true - components: rustfmt, clippy - - name: cargo fmt (check) - run: cargo fmt -- --check -l