Skip to content

Commit 9cbc649

Browse files
committedMar 17, 2021
Add tests for known outputs, current 'rustc'.
This also moves the CI to Github Actions.
1 parent e7f0ff4 commit 9cbc649

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+501
-2
lines changed
 

‎.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
test:
10+
name: "${{ matrix.os.name }} ${{ matrix.test.name }} (${{ matrix.toolchain }})"
11+
12+
strategy:
13+
matrix:
14+
os:
15+
- { name: Linux, distro: ubuntu-latest }
16+
- { name: Windows, distro: windows-latest }
17+
- { name: macOS, distro: macOS-latest }
18+
toolchain: [nightly, beta, stable]
19+
include:
20+
- os: { name: Linux, distro: ubuntu-latest }
21+
toolchain: 1.0.0
22+
23+
runs-on: ${{ matrix.os.distro }}
24+
25+
steps:
26+
- name: Checkout Sources
27+
uses: actions/checkout@v2
28+
29+
- name: Install Rust
30+
uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: ${{ matrix.toolchain }}
34+
override: true
35+
36+
- name: Run Tests
37+
uses: actions-rs/cargo@v1
38+
env:
39+
FORCE_STATIC: 1
40+
KNOWN_CHANNEL: ${{ matrix.toolchain }}
41+
with:
42+
command: test

‎Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ repository = "https://github.com/SergioBenitez/version_check"
88
readme = "README.md"
99
keywords = ["version", "rustc", "minimum", "check"]
1010
license = "MIT/Apache-2.0"
11+
exclude = ["static"]
1112

1213
[dependencies]

0 commit comments

Comments
 (0)