|
26 | 26 | job: |
27 | 27 | - { os: ubuntu-latest , features: feat_os_unix } |
28 | 28 | steps: |
29 | | - - uses: actions/checkout@v5 |
| 29 | + - uses: actions/checkout@v6 |
30 | 30 | with: |
31 | 31 | persist-credentials: false |
32 | 32 | - name: Initialize job variables |
|
77 | 77 | add: Cargo.lock fuzz/Cargo.lock |
78 | 78 | env: |
79 | 79 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
80 | | - |
81 | | - code_format: |
82 | | - # Recheck/refresh code formatting |
83 | | - if: github.event.pull_request.merged == true ## only for PR merges |
84 | | - name: Update/format |
85 | | - runs-on: ${{ matrix.job.os }} |
86 | | - strategy: |
87 | | - fail-fast: false |
88 | | - matrix: |
89 | | - job: |
90 | | - - { os: ubuntu-latest , features: feat_os_unix } |
91 | | - steps: |
92 | | - - uses: actions/checkout@v5 |
93 | | - with: |
94 | | - persist-credentials: false |
95 | | - - name: Initialize job variables |
96 | | - id: vars |
97 | | - shell: bash |
98 | | - run: | |
99 | | - # target-specific options |
100 | | - # * CARGO_FEATURES_OPTION |
101 | | - CARGO_FEATURES_OPTION='' ; |
102 | | - if [ -n "${{ matrix.job.features }}" ]; then CARGO_FEATURES_OPTION='--features "${{ matrix.job.features }}"' ; fi |
103 | | - echo "CARGO_FEATURES_OPTION=${CARGO_FEATURES_OPTION}" >> $GITHUB_OUTPUT |
104 | | - - uses: dtolnay/rust-toolchain@master |
105 | | - with: |
106 | | - toolchain: stable |
107 | | - components: rustfmt |
108 | | - - uses: Swatinem/rust-cache@v2 |
109 | | - - name: "`cargo fmt`" |
110 | | - shell: bash |
111 | | - run: | |
112 | | - cargo fmt |
113 | | - - name: "`cargo fmt` tests" |
114 | | - shell: bash |
115 | | - run: | |
116 | | - # `cargo fmt` of tests |
117 | | - find tests -name "*.rs" -print0 | xargs -0 cargo fmt -- |
118 | | - - name: Commit any changes (to '${{ env.BRANCH_TARGET }}') |
119 | | - uses: EndBug/add-and-commit@v9 |
120 | | - with: |
121 | | - new_branch: ${{ env.BRANCH_TARGET }} |
122 | | - default_author: github_actions |
123 | | - message: "maint ~ rustfmt (`cargo fmt`)" |
124 | | - env: |
125 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments