Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: pin rust version to 1.46.0 #269

Merged
merged 4 commits into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: actions-rs/toolchain@v1
Wodann marked this conversation as resolved.
Show resolved Hide resolved
with:
profile: minimal
toolchain: stable
override: true

- name: Install LLVM
Expand All @@ -38,49 +37,44 @@ jobs:
fail-fast: false
matrix:
config:
- { os: "ubuntu-latest", toolchain: "stable"}
- { os: "ubuntu-latest", toolchain: "beta"}
- { os: "ubuntu-latest", toolchain: "nightly"}
- { os: "windows-2016", toolchain: "stable"}
- { os: "macOS-latest", toolchain: "stable"}
- { os: "ubuntu-latest"}
- { os: "windows-2016"}
- { os: "macOS-latest"}
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Install ${{ matrix.config.toolchain }} toolchain
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.config.toolchain }}
override: true
components: rustfmt

- name: Install LLVM
uses: ./.github/actions/install-llvm

- name: Cargo build
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
if: ${{ matrix.config.os == 'ubuntu-latest' }}
uses: actions-rs/cargo@v1
continue-on-error: ${{ matrix.config.toolchain == 'nightly' }}
with:
command: build

- name: Install mdbook
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
if: ${{ matrix.config.os == 'ubuntu-latest' }}
uses: actions-rs/install@v0.1
with:
crate: mdbook
version: latest
use-tool-cache: true

- name: mdbook test
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
if: ${{ matrix.config.os == 'ubuntu-latest' }}
run: mdbook test book -L target/debug/deps

- name: Cargo test
uses: actions-rs/cargo@v1
continue-on-error: ${{ matrix.config.toolchain == 'nightly' }}
with:
command: test
args: -- --nocapture
Expand All @@ -98,7 +92,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt

Expand Down Expand Up @@ -128,8 +121,9 @@ jobs:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt

- name: Install LLVM
uses: ./.github/actions/install-llvm
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ jobs:
with:
submodules: true

- name: Install ${{ matrix.config.toolchain }} toolchain
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install LLVM
Expand Down
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.46.0