fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.0 KiB81 linesraw
1name: integration
2on:
3  push:
4    branches:
5      - master
6  pull_request:
7
8jobs:
9  integration-tests:
10    runs-on: ubuntu-latest
11    name: ${{ matrix.integration }}
12    strategy:
13      # https://help.github.com/en/actions/getting-started-with-github-actions/about-github-actions#usage-limits
14      # There's a limit of 60 concurrent jobs across all repos in the rust-lang organization.
15      # In order to prevent overusing too much of that 60 limit, we throttle the
16      # number of rustfmt jobs that will run concurrently.
17      max-parallel: 4
18      fail-fast: false
19      matrix:
20        integration: [
21          bitflags,
22          error-chain,
23          log,
24          mdbook,
25          packed_simd,
26          rust-semverver,
27          tempdir,
28          futures-rs,
29          rust-clippy,
30        ]
31        include:
32          # Allowed Failures
33          # Actions doesn't yet support explicitly marking matrix legs as allowed failures
34          # https://github.community/t5/GitHub-Actions/continue-on-error-allow-failure-UI-indication/td-p/37033
35          # https://github.community/t5/GitHub-Actions/Why-a-matrix-step-will-be-canceled-if-another-one-failed/td-p/30920
36          # Instead, leverage `continue-on-error`
37          # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error
38          #
39          # Failing due to breaking changes in rustfmt 2.0 where empty
40          # match blocks have trailing commas removed
41          # https://github.com/rust-lang/rustfmt/pull/4226
42          - integration: chalk
43            allow-failure: true
44          - integration: crater
45            allow-failure: true
46          - integration: glob
47            allow-failure: true
48          - integration: stdsimd
49            allow-failure: true
50          # Using old rustfmt configuration option
51          - integration: rand
52            allow-failure: true
53          # Keep this as an allowed failure as it's fragile to breaking changes of rustc.
54          - integration: rust-clippy
55            allow-failure: true
56          # Using old rustfmt configuration option
57          - integration: packed_simd
58            allow-failure: true
59          # calebcartwright (2019-12-24)
60          # Keeping this as an allowed failure since it was flagged as such in the TravisCI config, even though
61          # it appears to have been passing for quite some time.
62          # Original comment was: temporal build failure due to breaking changes in the nightly compiler
63          - integration: rust-semverver
64            allow-failure: true
65
66    steps:
67    - name: checkout
68      uses: actions/checkout@v3
69
70      # Run build
71    - name: install rustup
72      run: |
73        curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
74        sh rustup-init.sh -y --default-toolchain none
75
76    - name: run integration tests
77      env:
78        INTEGRATION: ${{ matrix.integration }}
79        TARGET: x86_64-unknown-linux-gnu
80      run: ./ci/integration.sh
81      continue-on-error: ${{ matrix.allow-failure == true }}