Merge pull request #66 from edera-dev/chore/upgrade #171
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
| name: check | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read # Needed to checkout the repository. | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.sha }}" | |
| cancel-in-progress: true | |
| jobs: | |
| rustfmt: | |
| name: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: harden runner | |
| uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 | |
| with: | |
| egress-policy: audit | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: 'install rust toolchain with rustfmt' | |
| run: | | |
| cargo version | |
| rustup component add rustfmt | |
| - name: 'cargo fmt' | |
| run: cargo fmt --all -- --check | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: | |
| - x86_64 | |
| - aarch64 | |
| env: | |
| TARGET_ARCH: "${{ matrix.arch }}" | |
| name: 'build ${{ matrix.arch }}' | |
| steps: | |
| - name: harden runner | |
| uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 | |
| with: | |
| egress-policy: audit | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: 'install rust toolchain' | |
| run: | | |
| cargo version | |
| - name: cargo build | |
| run: cargo build --target "${TARGET_ARCH}-unknown-uefi" | |
| clippy: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: | |
| - x86_64 | |
| - aarch64 | |
| env: | |
| TARGET_ARCH: "${{ matrix.arch }}" | |
| name: 'clippy ${{ matrix.arch }}' | |
| steps: | |
| - name: harden runner | |
| uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1 | |
| with: | |
| egress-policy: audit | |
| - name: checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: 'install rust toolchain with clippy' | |
| run: | | |
| cargo version | |
| rustup component add clippy | |
| - name: cargo clippy | |
| run: cargo clippy --target "${TARGET_ARCH}-unknown-uefi" |