2020-09-23 22:22:37 -05:00
|
|
|
name: mac
|
2020-11-13 22:17:07 -06:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
2020-09-23 22:22:37 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
runs-on: macos-latest
|
2021-11-24 02:35:01 -06:00
|
|
|
name: (${{ matrix.target }}, ${{ matrix.cfg_release_channel }})
|
|
|
|
env:
|
|
|
|
CFG_RELEASE_CHANNEL: ${{ matrix.cfg_release_channel }}
|
2020-09-23 22:22:37 -05:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
target: [
|
|
|
|
x86_64-apple-darwin,
|
|
|
|
]
|
2021-11-24 02:35:01 -06:00
|
|
|
cfg_release_channel: [nightly, stable]
|
2020-09-23 22:22:37 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
2024-09-09 08:51:19 -05:00
|
|
|
uses: actions/checkout@v4
|
2020-09-23 22:22:37 -05:00
|
|
|
|
|
|
|
# Run build
|
2021-02-17 12:29:00 -06:00
|
|
|
- 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 }}
|
2020-09-23 22:22:37 -05:00
|
|
|
|
2022-06-21 10:23:13 -05:00
|
|
|
- name: Build and Test
|
|
|
|
run: ./ci/build_and_test.sh
|