diff options
Diffstat (limited to 'src/tools/rustfmt/.github/workflows/mac.yml')
| -rw-r--r-- | src/tools/rustfmt/.github/workflows/mac.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/tools/rustfmt/.github/workflows/mac.yml b/src/tools/rustfmt/.github/workflows/mac.yml new file mode 100644 index 00000000000..79e4f69163e --- /dev/null +++ b/src/tools/rustfmt/.github/workflows/mac.yml @@ -0,0 +1,39 @@ +name: mac +on: + push: + branches: + - master + pull_request: + +jobs: + test: + # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources + # macOS Catalina 10.15 + runs-on: macos-latest + name: (${{ matrix.target }}, nightly) + strategy: + fail-fast: false + matrix: + target: [ + x86_64-apple-darwin, + ] + + steps: + - name: checkout + uses: actions/checkout@v2 + + # Run build + - name: install rustup + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh + sh rustup-init.sh -y --default-toolchain none + rustup target add ${{ matrix.target }} + + - name: build + run: | + rustc -Vv + cargo -V + cargo build + + - name: test + run: cargo test |
