|
8 | 8 | jobs:
|
9 | 9 | docker:
|
10 | 10 | name: Docker
|
11 |
| - runs-on: ubuntu-latest |
| 11 | + timeout-minutes: 10 |
12 | 12 | strategy:
|
| 13 | + fail-fast: false |
13 | 14 | matrix:
|
14 |
| - target: |
15 |
| - - aarch64-unknown-linux-gnu |
16 |
| - - arm-unknown-linux-gnueabi |
17 |
| - - arm-unknown-linux-gnueabihf |
18 |
| - - armv7-unknown-linux-gnueabihf |
19 |
| - # - i686-unknown-linux-gnu |
20 |
| - # MIPS targets disabled since they are dropped to tier 3. |
21 |
| - # See https://github.com/rust-lang/compiler-team/issues/648 |
22 |
| - #- mips-unknown-linux-gnu |
23 |
| - #- mips64-unknown-linux-gnuabi64 |
24 |
| - #- mips64el-unknown-linux-gnuabi64 |
25 |
| - - powerpc-unknown-linux-gnu |
26 |
| - - powerpc64-unknown-linux-gnu |
27 |
| - - powerpc64le-unknown-linux-gnu |
28 |
| - - x86_64-unknown-linux-gnu |
| 15 | + include: |
| 16 | + - target: aarch64-apple-darwin |
| 17 | + os: macos-latest |
| 18 | + - target: aarch64-unknown-linux-gnu |
| 19 | + os: ubuntu-latest |
| 20 | + - target: arm-unknown-linux-gnueabi |
| 21 | + os: ubuntu-latest |
| 22 | + - target: arm-unknown-linux-gnueabihf |
| 23 | + os: ubuntu-latest |
| 24 | + - target: armv7-unknown-linux-gnueabihf |
| 25 | + os: ubuntu-latest |
| 26 | + - target: i686-unknown-linux-gnu |
| 27 | + os: ubuntu-latest |
| 28 | + - target: powerpc-unknown-linux-gnu |
| 29 | + os: ubuntu-latest |
| 30 | + - target: powerpc64-unknown-linux-gnu |
| 31 | + os: ubuntu-latest |
| 32 | + - target: powerpc64le-unknown-linux-gnu |
| 33 | + os: ubuntu-latest |
| 34 | + - target: x86_64-unknown-linux-gnu |
| 35 | + os: ubuntu-latest |
| 36 | + - target: x86_64-apple-darwin |
| 37 | + os: macos-13 |
| 38 | + # - target: i686-pc-windows-msvc |
| 39 | + # os: windows-latest |
| 40 | + # - target: x86_64-pc-windows-msvc |
| 41 | + # os: windows-latest |
| 42 | + - target: i686-pc-windows-gnu |
| 43 | + os: windows-latest |
| 44 | + - target: x86_64-pc-windows-gnu |
| 45 | + os: windows-latest |
| 46 | + runs-on: ${{ matrix.os }} |
29 | 47 | steps:
|
30 |
| - - uses: actions/checkout@master |
31 |
| - - name: Install Rust |
32 |
| - run: rustup update nightly && rustup default nightly |
33 |
| - - run: rustup target add ${{ matrix.target }} |
34 |
| - - run: rustup target add x86_64-unknown-linux-musl |
35 |
| - - run: cargo generate-lockfile |
36 |
| - - run: ./ci/run-docker.sh ${{ matrix.target }} |
| 48 | + - name: Print runner information |
| 49 | + run: uname -a |
| 50 | + - uses: actions/checkout@v4 |
| 51 | + - name: Install Rust (rustup) |
| 52 | + shell: bash |
| 53 | + run: | |
| 54 | + rustup update nightly --no-self-update |
| 55 | + rustup default nightly |
| 56 | + rustup target add ${{ matrix.target }} |
| 57 | + rustup component add llvm-tools-preview |
| 58 | + - uses: Swatinem/rust-cache@v2 |
| 59 | + with: |
| 60 | + key: ${{ matrix.target }} |
| 61 | + |
| 62 | + - name: Download musl source |
| 63 | + run: ./ci/download-musl.sh |
| 64 | + shell: bash |
| 65 | + |
| 66 | + # Non-linux tests just use our raw script |
| 67 | + - name: Run tests locally |
| 68 | + run: ./ci/run.sh ${{ matrix.target }} |
| 69 | + if: matrix.os != 'ubuntu-latest' |
| 70 | + shell: bash |
| 71 | + |
| 72 | + # Otherwise we use our docker containers to run builds |
| 73 | + - name: Run in Docker |
| 74 | + if: matrix.os == 'ubuntu-latest' |
| 75 | + run: | |
| 76 | + rustup target add x86_64-unknown-linux-musl |
| 77 | + cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }} |
37 | 78 |
|
38 | 79 | rustfmt:
|
39 | 80 | name: Rustfmt
|
40 | 81 | runs-on: ubuntu-latest
|
41 | 82 | steps:
|
42 | 83 | - uses: actions/checkout@master
|
43 | 84 | - name: Install Rust
|
44 |
| - run: rustup update stable && rustup default stable && rustup component add rustfmt |
| 85 | + run: | |
| 86 | + rustup update stable --no-self-update |
| 87 | + rustup default stable |
| 88 | + rustup component add rustfmt |
45 | 89 | - run: cargo fmt -- --check
|
46 | 90 |
|
47 | 91 | wasm:
|
|
50 | 94 | steps:
|
51 | 95 | - uses: actions/checkout@master
|
52 | 96 | - name: Install Rust
|
53 |
| - run: rustup update nightly && rustup default nightly |
| 97 | + run: rustup update nightly --no-self-update && rustup default nightly |
54 | 98 | - run: rustup target add wasm32-unknown-unknown
|
| 99 | + - name: Download MUSL source |
| 100 | + run: ./ci/download-musl.sh |
55 | 101 | - run: cargo build --target wasm32-unknown-unknown
|
56 | 102 |
|
57 | 103 | cb:
|
|
60 | 106 | steps:
|
61 | 107 | - uses: actions/checkout@master
|
62 | 108 | - name: Install Rust
|
63 |
| - run: rustup update nightly && rustup default nightly |
| 109 | + run: rustup update nightly --no-self-update && rustup default nightly |
64 | 110 | - run: cargo build -p cb
|
65 | 111 |
|
66 | 112 | benchmarks:
|
|
69 | 115 | steps:
|
70 | 116 | - uses: actions/checkout@master
|
71 | 117 | - name: Install Rust
|
72 |
| - run: rustup update nightly && rustup default nightly |
| 118 | + run: rustup update nightly --no-self-update && rustup default nightly |
| 119 | + - name: Download MUSL source |
| 120 | + run: ./ci/download-musl.sh |
73 | 121 | - run: cargo bench --all
|
74 | 122 |
|
75 | 123 | success:
|
|
0 commit comments