mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-06-08 03:36:37 +00:00
Profiles and components support
This commit is contained in:
parent
74865b8fc9
commit
f0a61e6769
10 changed files with 5143 additions and 891 deletions
47
.github/workflows/ci.yml
vendored
47
.github/workflows/ci.yml
vendored
|
@ -1,18 +1,49 @@
|
|||
name: Continuous integration
|
||||
|
||||
on: [pull_request, push]
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
check_pr:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Create npm configuration
|
||||
run: echo "//npm.pkg.github.com/:_authToken=${token}" >> ~/.npmrc
|
||||
env:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: "npm ci"
|
||||
run: npm ci
|
||||
- uses: actions/checkout@v1
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm run test
|
||||
|
||||
- name: "npm run build"
|
||||
run: npm run build
|
||||
install_stable:
|
||||
runs-on: ubuntu-latest
|
||||
needs: check_pr
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ./
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: "npm run test"
|
||||
run: npm run test
|
||||
install_nightly:
|
||||
runs-on: ubuntu-latest
|
||||
needs: check_pr
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ./
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
components: rustfmt, clippy
|
||||
|
||||
install_stable_in_docker:
|
||||
runs-on: ubuntu-latest
|
||||
container: ubuntu:latest # Docker image, not the GitHub Actions VM
|
||||
needs: check_pr
|
||||
steps:
|
||||
# `rustup` will need `curl` or `wget` later
|
||||
- run: apt-get update && apt-get install -y curl
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ./
|
||||
with:
|
||||
toolchain: stable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue