Merge pull request #55 from nstilt1/master #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Analyze Standard Library | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache toolchain | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-rust-toolchain | |
with: | |
path: ~/.rustup/toolchains | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('ci/setup_toolchains.sh') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Setup toolchains | |
run: ci/setup_toolchains.sh | |
- name: Build | |
run: ci/build.sh | |
- name: Install xargo | |
run: cargo install xargo | |
- name: Download rust source | |
run: rustup component add rust-src | |
- name: Analyze standard library | |
working-directory: stdlib-analysis | |
run: ./rudra_analyze_std.sh |