Skip to content

Commit ac4f7de

Browse files
committedOct 26, 2020
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff25d3dda92'
git-subtree-dir: compiler/rustc_codegen_cranelift git-subtree-mainline: cf798c1 git-subtree-split: 793d260
2 parents cf798c1 + 793d260 commit ac4f7de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+16617
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Cache cargo installed crates
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.cargo/bin
23+
key: ${{ runner.os }}-cargo-installed-crates
24+
25+
- name: Cache cargo registry and index
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
~/.cargo/registry
30+
~/.cargo/git
31+
key: ${{ runner.os }}-cargo-registry-and-index-${{ hashFiles('**/Cargo.lock') }}
32+
33+
- name: Cache cargo target dir
34+
uses: actions/cache@v2
35+
with:
36+
path: target
37+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
38+
39+
- name: Prepare dependencies
40+
run: |
41+
git config --global user.email "user@example.com"
42+
git config --global user.name "User"
43+
./prepare.sh
44+
45+
- name: Test
46+
run: |
47+
# Enable backtraces for easier debugging
48+
export RUST_BACKTRACE=1
49+
50+
# Reduce amount of benchmark runs as they are slow
51+
export COMPILE_RUNS=2
52+
export RUN_RUNS=2
53+
54+
./test.sh --release

0 commit comments

Comments
 (0)
Please sign in to comment.