Skip to content

CI

CI #60

Workflow file for this run

on:
push:
pull_request:
workflow_dispatch:
# Run automatically every monday
schedule:
- cron: 1 12 * * 1
name: CI
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Run clippy
run: cargo clippy -- --deny warnings
build_and_test:
name: Rust project
strategy:
fail-fast: false
matrix:
os: ['macos-latest', 'ubuntu-latest', 'ubuntu-20.04', 'windows-latest']
rust: ['stable']
include:
- os: 'ubuntu-20.04'
rust: '1.63'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
- name: Build
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: plotsweep ${{ matrix.os }} rust-${{ matrix.rust }}
path: |
target/release/plotsweep
target/release/plotsweep.exe