annotate .github/workflows/rust.yml @ 31:fbb9e1206e3c

Use explicit Rust version in CI
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Sun, 20 Apr 2025 17:55:34 +0200
parents 27456533853e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
1 name: Rust
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
2
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
3 on:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
4 push:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
5 branches: [ master ]
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
6 pull_request:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
7 branches: [ master ]
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
8 workflow_dispatch:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
9
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
10 env:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
11 CARGO_TERM_COLOR: always
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
12
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
13 jobs:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
14 build:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
15
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
16 runs-on: ${{ matrix.os }}
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
17 strategy:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
18 matrix:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
19 os: [ubuntu-latest, windows-latest, macOS-latest]
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
20
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
21 steps:
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
22 - uses: actions/checkout@v2
31
fbb9e1206e3c Use explicit Rust version in CI
Martin Habovstiak <martin.habovstiak@gmail.com>
parents: 5
diff changeset
23 - name: Select the minimal lock file
fbb9e1206e3c Use explicit Rust version in CI
Martin Habovstiak <martin.habovstiak@gmail.com>
parents: 5
diff changeset
24 run: cp Cargo-minimal.lock Cargo.lock
fbb9e1206e3c Use explicit Rust version in CI
Martin Habovstiak <martin.habovstiak@gmail.com>
parents: 5
diff changeset
25 - name: Set Rust version
fbb9e1206e3c Use explicit Rust version in CI
Martin Habovstiak <martin.habovstiak@gmail.com>
parents: 5
diff changeset
26 if: matrix.os != 'macOS-latest'
fbb9e1206e3c Use explicit Rust version in CI
Martin Habovstiak <martin.habovstiak@gmail.com>
parents: 5
diff changeset
27 run: rustup default 1.48.0
5
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
28 - name: Build
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
29 run: cargo build --verbose
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
30 - name: Run tests
27456533853e Attempt to setup CI using GitHub Actions
Martin Habovštiak <martin.habovstiak@gmail.com>
parents:
diff changeset
31 run: cargo test --all-features --verbose