]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/.github/workflows/mac.yml
Auto merge of #98097 - lqd:const-alloc-hash, r=oli-obk
[rust.git] / src / tools / rustfmt / .github / workflows / mac.yml
1 name: mac
2 on:
3   push:
4     branches:
5       - master
6   pull_request:
7
8 jobs:
9   test:
10     # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources
11     # macOS Catalina 10.15
12     runs-on: macos-latest
13     name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }})
14     env:
15       CFG_RELEASE_CHANNEL: ${{ matrix.cfg_release_channel }}
16     strategy:
17       fail-fast: false
18       matrix:
19         target: [
20           x86_64-apple-darwin,
21         ]
22         cfg_release_channel: [nightly, stable]
23
24     steps:
25     - name: checkout
26       uses: actions/checkout@v3
27
28       # Run build
29     - name: install rustup
30       run: |
31         curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
32         sh rustup-init.sh -y --default-toolchain none
33         rustup target add ${{ matrix.target }}
34
35     - name: build
36       run: |
37         rustc -Vv
38         cargo -V
39         cargo build
40
41     - name: test
42       run: cargo test