Skip to content

ci: Linux用のCIを追加 #14

ci: Linux用のCIを追加

ci: Linux用のCIを追加 #14

Workflow file for this run

name: ci
env:
rust_stable: stable
rust_min: 1.66.0
RUSTFLAGS: -Dwarnings
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: sudo ./.gitlab/setup-deps.sh
if: matrix.os == 'ubuntu-latest'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_stable }}
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace
minrust:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_min }}
- uses: Swatinem/rust-cache@v2
- run: cargo check -p isdb --all-features
env:
RUSTFLAGS: "" # remove -Dwarnings
build:
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: windows-latest
# 直近2バージョン+LTS
- image: ubuntu:22.04
- image: ubuntu:22.10
- image: ubuntu:23.04
- image: fedora:37
- image: fedora:38
runs-on: ${{ matrix.os }}
container: ${{ matrix.image }}
steps:
- uses: actions/checkout@v3
- run: ./.gitlab/setup-deps.sh
if: matrix.os == 'ubuntu-latest'
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_stable }}
- uses: Swatinem/rust-cache@v2
- run: cargo build -p tavoo