Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha committed Aug 19, 2023
1 parent 4300915 commit 8e6773a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ env:
CARGO_TERM_COLOR: always
RUSTDOCFLAGS: --deny warnings
RUSTFLAGS: --deny warnings
# for unix
PATH: ${{ github.workspace }}:${{ env.PATH }}
# for windows
Path: ${{ github.workspace }};${{ env.Path }}

jobs:
rust-lint:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu, windows, macos]

# Setup
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
- run: ./scripts/download/cargo-nextest.sh

- run: cargo nextest run
- run: cargo clippy
- run: cargo doc --no-deps

Expand All @@ -45,11 +50,11 @@ jobs:
# the only package requiring nightly should be `marker_rustc_driver` and
# optionally `marker_adapter`
cargo-check-on-stable:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu, windows, macos]

steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 11 additions & 0 deletions scripts/download/cargo-nextest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -euo pipefail

script_dir=$(readlink -f $(dirname $0))

. $script_dir/lib.sh

version=0.9.57

download_and_decompress https://get.nexte.st/$version/$arch_rust-unknown-linux-gnu.tar.gz
4 changes: 2 additions & 2 deletions scripts/download/mdbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ script_dir=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
# mdbook
version=v0.4.33
base_url=https://github.com/rust-lang/mdBook/releases/download/$version
file_stem=mdbook-$version-x86_64-unknown-linux-gnu
file_stem=mdbook-$version-$arch_rust-unknown-linux-gnu
download_and_decompress $base_url/$file_stem.tar.gz

# mdbook-toc
version=0.14.1
base_url=https://github.com/badboy/mdbook-toc/releases/download/$version
file_stem=mdbook-toc-$version-x86_64-unknown-linux-gnu
file_stem=mdbook-toc-$version-$arch_rust-unknown-linux-gnu
download_and_decompress $base_url/$file_stem.tar.gz

0 comments on commit 8e6773a

Please sign in to comment.