Update Rust crate sysinfo to v0.33.1 (#324) #772
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
# Copyright 2024 Dotanuki Labs | |
# SPDX-License-Identifier: MIT | |
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
check-docs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Check typos on source files | |
uses: dotanuki-labs/github-actions/quality/typos@main | |
- name: Lint Markdown files | |
uses: dotanuki-labs/github-actions/quality/markdown@main | |
- name: Check MIT license on source files | |
uses: dotanuki-labs/github-actions/foss/check-licenses@main | |
with: | |
file-patterns: "*.sh,*.rs,*.yml,*.bats,*Dockerfile" | |
license: "mit" | |
- name: Build documentation assets | |
uses: dotanuki-labs/github-actions/foss/prepare-ghpages@main | |
lint: | |
runs-on: ubuntu-24.04 | |
needs: check-docs | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Lint Bash scripts | |
uses: dotanuki-labs/github-actions/quality/bash@main | |
- name: Lint project | |
run: ./krabby.sh lint | |
tests: | |
runs-on: ubuntu-24.04 | |
needs: check-docs | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup CI | |
uses: ./.github/actions/setup-rust | |
- name: Run tests | |
run: ./krabby.sh tests | |
e2e: | |
runs-on: ubuntu-24.04 | |
needs: check-docs | |
strategy: | |
matrix: | |
resource: ["disk", "ram"] | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup CI | |
uses: ./.github/actions/setup-rust | |
- name: Cross-compilation against some targets | |
run: ./krabby.sh e2e ${{ matrix.resource }} | |
build: | |
needs: check-docs | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-24.04", "macos-14"] | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup CI | |
uses: ./.github/actions/setup-rust | |
- name: Run tests | |
run: ./krabby.sh assemble | |
- name: Archive binaries | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: gradle-wiper-binaries-${{ runner.os }} | |
path: artifacts | |
security-checks: | |
runs-on: ubuntu-24.04 | |
needs: [build, lint, tests, e2e] | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup CI | |
uses: ./.github/actions/setup-rust | |
- name: Run security checks | |
run: ./krabby.sh security | |
- name: Generate SBOM | |
run: ./krabby.sh sbom | |
- name: Archive SBOM | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: sbom-${{ github.sha }}.json | |
path: gradle-wiper.cdx.json |