Skip to content

ci: bump actions/download-artifact from 7.0.0 to 8.0.1 #63

ci: bump actions/download-artifact from 7.0.0 to 8.0.1

ci: bump actions/download-artifact from 7.0.0 to 8.0.1 #63

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
with:
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Tests
run: cargo test
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Security audit
run: cargo audit
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Shellcheck
run: shellcheck install.sh
build:
needs: quality
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
name: linux-x86_64
- target: x86_64-apple-darwin
os: macos-14
name: darwin-x86_64
- target: aarch64-apple-darwin
os: macos-14
name: darwin-aarch64
- target: x86_64-pc-windows-msvc
os: windows-latest
name: windows-x86_64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Rust
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
with:
targets: ${{ matrix.target }}
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Smoke test (Unix)
if: runner.os != 'Windows'
run: |
./target/${{ matrix.target }}/release/portview --version
./target/${{ matrix.target }}/release/portview || true
- name: Smoke test (Windows)
if: runner.os == 'Windows'
run: |
.\target\${{ matrix.target }}\release\portview.exe --version
.\target\${{ matrix.target }}\release\portview.exe ; exit 0
shell: pwsh