Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: build OS X on master and bors merges to it #1625

Merged
merged 1 commit into from
May 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ on:
# If you add additional jobs, remember to add them to bors.toml
jobs:
ci-format:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -33,7 +36,10 @@ jobs:
make ci-documentation

ci-build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
Expand All @@ -55,17 +61,28 @@ jobs:
path: ci-artifacts

ci-tests:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- name: ci-cargo-tests
run: make ci-cargo-tests
- name: ci-tools-install-dependencies
run: |
if [ ${{ matrix.os }} == "ubuntu-latest" ]; then
sudo apt-get install libusb-1.0-0-dev
elif [ ${{ matrix.os }} == "macos-latest" ]; then
brew install libusb-compat pkg-config
else
echo "${{ matrix.os }} not supported"
exit 1
fi
- name: ci-tools
run: |
sudo apt install libusb-1.0-0-dev
make ci-tools
run: make ci-tools

emulation-check:
runs-on: ubuntu-latest
Expand Down