]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/.github/workflows/integration.yml
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / rustfmt / .github / workflows / integration.yml
1 name: integration
2 on:
3 push:
4 branches:
5 - master
6 pull_request:
7
8 jobs:
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 failure,
31 ]
32 include:
33 # Allowed Failures
34 # Actions doesn't yet support explicitly marking matrix legs as allowed failures
35 # https://github.community/t5/GitHub-Actions/continue-on-error-allow-failure-UI-indication/td-p/37033
36 # https://github.community/t5/GitHub-Actions/Why-a-matrix-step-will-be-canceled-if-another-one-failed/td-p/30920
37 # Instead, leverage `continue-on-error`
38 # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error
39 #
40 # Failing due to breaking changes in rustfmt 2.0 where empty
41 # match blocks have trailing commas removed
42 # https://github.com/rust-lang/rustfmt/pull/4226
43 - integration: chalk
44 allow-failure: true
45 - integration: crater
46 allow-failure: true
47 - integration: glob
48 allow-failure: true
49 - integration: stdsimd
50 allow-failure: true
51 # Using old rustfmt configuration option
52 - integration: rand
53 allow-failure: true
54 # Keep this as an allowed failure as it's fragile to breaking changes of rustc.
55 - integration: rust-clippy
56 allow-failure: true
57 # Using old rustfmt configuration option
58 - integration: packed_simd
59 allow-failure: true
60 # calebcartwright (2019-12-24)
61 # Keeping this as an allowed failure since it was flagged as such in the TravisCI config, even though
62 # it appears to have been passing for quite some time.
63 # Original comment was: temporal build failure due to breaking changes in the nightly compiler
64 - integration: rust-semverver
65 allow-failure: true
66 # Can be moved back to include section after https://github.com/rust-lang-nursery/failure/pull/298 is merged
67 - integration: failure
68 allow-failure: true
69
70 steps:
71 - name: checkout
72 uses: actions/checkout@v3
73
74 # Run build
75 - name: install rustup
76 run: |
77 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
78 sh rustup-init.sh -y --default-toolchain none
79
80 - name: run integration tests
81 env:
82 INTEGRATION: ${{ matrix.integration }}
83 TARGET: x86_64-unknown-linux-gnu
84 run: ./ci/integration.sh
85 continue-on-error: ${{ matrix.allow-failure == true }}