forked from actions-rs/toolchain
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.23 KB
/
test_components.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI Test - components
on:
- pull_request
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use myself
uses: ./
with:
toolchain: nightly
profile: minimal
override: true
# Clippy is not included in minimal, so this would force to get clippy as well
components: clippy
- name: Test clippy exists
run: cargo clippy -V
install_in_docker:
runs-on: ubuntu-latest
# Docker image, not the GitHub Actions VM
container: ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v4
# `rustup` will need `curl` or `wget` later
- name: Install packages
run: apt-get update && apt-get install -y curl
- name: Use myself
uses: ./
with:
toolchain: nightly
profile: minimal
override: true
# Clippy is not included in minimal, so this would force to get clippy as well
components: clippy
- name: Test clippy exists
run: cargo clippy -V