diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6a955f..beed9d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,34 +1,40 @@ +name: Test/lint + on: - push - pull_request -name: CI - env: CARGO_TERM_COLOR: always CARGO_INCREMENTAL: "0" jobs: - build_and_test: + test-lint: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - target: - - x86_64-unknown-linux-gnu - # - x86_64-pc-windows-gnu - - x86_64-unknown-linux-musl + include: + - build: linux + os: ubuntu-latest + target: x86_64-unknown-linux-gnu + + - build: windows-gnu + os: windows-latest + target: x86_64-pc-windows-gnu + steps: - - name: Install target - run: rustup target add ${{ matrix.target }} - - uses: actions/checkout@v4 - - name: Build - run: cargo check --target ${{ matrix.target }} --verbose - - name: Run tests - run: cargo test --target ${{ matrix.target }} --verbose - - name: Run clippy - run: cargo clippy - - name: Run rustfmt - run: cargo fmt --check + - name: Clone repository + uses: actions/checkout@v4 + + - name: cargo check + run: cargo check --target ${{ matrix.target }} + + - name: cargo test + run: cargo test --target ${{ matrix.target }} + - name: cargo clippy + run: cargo clippy + - name: cargo fmt + run: cargo fmt --check