name: CI permissions: contents: read on: pull_request: push: branches: - main - dev schedule: - cron: '0 1 * * *' workflow_dispatch: defaults: run: shell: bash jobs: tidy: uses: taiki-e/workflows/.github/workflows/tidy-no-rust.yml@main test: strategy: fail-fast: false matrix: os: - ubuntu-20.04 tool: # Note: Specifying the version of valgrind is not supported. # cargo-watch is supported by cargo-binstall (through quickinstall) - cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,nextest,protoc,shellcheck,shfmt,valgrind,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch - cargo-hack@0.5.24,cargo-llvm-cov@0.5.2,cargo-minimal-versions@0.1.8,parse-changelog@0.5.2,cargo-udeps@0.1.35,cargo-valgrind@2.1.0,cargo-deny@0.13.5,cross@0.2.4,nextest@0.9.11,protoc@3.21.11,shellcheck@0.8.0,shfmt@3.6.0,wasm-pack@0.10.3,wasmtime@3.0.1,mdbook@0.4.22,mdbook-linkcheck@0.7.7,cargo-watch@8.1.1 # Nextest supports basic version ranges as well - nextest@0.9 include: - os: macos-11 tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch - os: windows-2019 tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 with: persist-credentials: false - uses: ./ with: tool: ${{ matrix.tool }} test-container: strategy: fail-fast: false matrix: include: - container: ubuntu:20.04 # valgrind: installing snap to container is difficult... tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch - container: debian:latest # valgrind: installing snap to container is difficult... tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-udeps,cargo-valgrind,cargo-deny,cross,nextest,protoc,shellcheck,shfmt,wasm-pack,wasmtime,mdbook,mdbook-linkcheck,cargo-watch - container: alpine:latest # cargo-udeps,protoc,valgrind,wasmtime,mdbook,mdbook-linkcheck,cargo-watch don't provide prebuilt binaries for musl host. tool: cargo-hack,cargo-llvm-cov,cargo-minimal-versions,parse-changelog,cargo-valgrind,cargo-deny,cross,nextest,shellcheck,shfmt,wasm-pack runs-on: ubuntu-latest container: ${{ matrix.container }} steps: - uses: actions/checkout@v3 with: persist-credentials: false - name: Install requirements (ubuntu/debian) run: | set -ex apt-get -o Acquire::Retries=10 -qq update apt-get -o Acquire::Retries=10 -qq -o Dpkg::Use-Pty=0 install -y --no-install-recommends ca-certificates cargo curl unzip xz-utils if: startsWith(matrix.container, 'ubuntu') || startsWith(matrix.container, 'debian') - name: Install requirements (alpine) run: apk add bash cargo curl tar xz shell: sh if: startsWith(matrix.container, 'alpine') - uses: ./ with: tool: ${{ matrix.tool }}