Skip to content

Fixes publishing on Crates #195

Fixes publishing on Crates

Fixes publishing on Crates #195

Workflow file for this run

# Copyright 2024 Dotanuki Labs
# SPDX-License-Identifier: MIT
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
essential-checks:
runs-on: ubuntu-22.04
steps:
- name: Project Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Run essential checks
uses: dotanuki-labs/github-actions/essentials@main
with:
file-patterns: '*.sh,*.rs,*.yml,*.bats,*Dockerfile'
license: 'mit'
lint-tests:
runs-on: ubuntu-22.04
needs: essential-checks
steps:
- name: Project Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup CI
uses: ./.github/actions/setup-rust
- name: Check project for errors
run: just checks
e2e:
runs-on: ubuntu-22.04
needs: essential-checks
strategy:
matrix:
resource: [ 'disk', 'ram' ]
steps:
- name: Project Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup CI
uses: ./.github/actions/setup-rust
- name: Cross-compilation against some targets
run: just e2e ${{ matrix.resource }}
build:
needs: essential-checks
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-22.04', 'macos-14' ]
steps:
- name: Project Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup CI
uses: ./.github/actions/setup-rust
- name: Cross-compilation against some targets
run: just flexible-build
- name: Archive binaries
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: gradle-wiper-binaries-${{ runner.os }}
path: target/ci
security-checks:
runs-on: ubuntu-22.04
needs: [build, lint-tests, e2e]
steps:
- name: Project Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup CI
uses: ./.github/actions/setup-rust
- name: Check MSRV
run: just msrv-check
- name: Check supply-chain issues
run: just supply-chain-checks
- name: Archive SBOM
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: sbom-${{ github.sha }}.json
path: gradle-wiper.cdx.json