Update build.yml

pull/1/head
sgoudham 3 years ago
parent 950f995ac6
commit 5712db7133

@ -1,11 +1,11 @@
name: Mean Bean CI name: build
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
# This job downloads and stores `cross` as an artifact, so that it can be # This job downloads and stores `cross` as an artifact, so that it can be
# redownloaded across all of the jobs. Currently this copied pasted between # redownloaded across all of the jobs. Currently this copied pasted between
# `ci.yml` and `deploy.yml`. Make sure to update both places when making # `build.yml` and `deploy.yml`. Make sure to update both places when making
# changes. # changes.
install-cross: install-cross:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
with: with:
depth: 50 depth: 50
- uses: XAMPPRocky/get-github-release@v1 - uses: sgoudham/get-github-release@v1
id: cross id: cross
with: with:
owner: rust-embedded owner: rust-embedded
@ -39,17 +39,16 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
depth: 50 depth: 50
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }} - run: scripts/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
shell: bash shell: bash
- run: ci/build.bash cargo ${{ matrix.target }} - run: scripts/build.bash cargo ${{ matrix.target }}
shell: bash shell: bash
- run: ci/test.bash cargo ${{ matrix.target }} - run: scripts/test.bash cargo ${{ matrix.target }}
shell: bash shell: bash
strategy: strategy:
fail-fast: true
matrix: matrix:
channel: [stable, beta, nightly] channel: [stable, beta]
target: target:
# MSVC # MSVC
- i686-pc-windows-msvc - i686-pc-windows-msvc
@ -75,16 +74,15 @@ jobs:
- run: chmod +x /usr/local/bin/cross - run: chmod +x /usr/local/bin/cross
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }} - run: scripts/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: ci/build.bash cross ${{ matrix.target }} - run: scripts/build.bash cross ${{ matrix.target }}
# Only test on macOS platforms since we can't simulate the others. # Only test on macOS platforms since we can't simulate the others.
- run: ci/test.bash cross ${{ matrix.target }} - run: scripts/test.bash cross ${{ matrix.target }}
if: matrix.target == 'x86_64-apple-darwin' if: matrix.target == 'x86_64-apple-darwin'
strategy: strategy:
fail-fast: true
matrix: matrix:
channel: [stable, beta, nightly] channel: [stable, beta]
target: target:
# macOS # macOS
- x86_64-apple-darwin - x86_64-apple-darwin
@ -103,12 +101,12 @@ jobs:
name: cross-linux-musl name: cross-linux-musl
path: /tmp/ path: /tmp/
- run: chmod +x /tmp/cross - run: chmod +x /tmp/cross
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }} - run: scripts/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: ci/build.bash /tmp/cross ${{ matrix.target }} - run: scripts/build.bash /tmp/cross ${{ matrix.target }}
# These targets have issues with being tested so they are disabled # These targets have issues with being tested so they are disabled
# by default. You can try disabling to see if they work for # by default. You can try disabling to see if they work for
# your project. # your project.
- run: ci/test.bash /tmp/cross ${{ matrix.target }} - run: scripts/test.bash /tmp/cross ${{ matrix.target }}
if: | if: |
!contains(matrix.target, 'android') && !contains(matrix.target, 'android') &&
!contains(matrix.target, 'bsd') && !contains(matrix.target, 'bsd') &&
@ -117,9 +115,8 @@ jobs:
matrix.target != 'sparc64-unknown-linux-gnu' matrix.target != 'sparc64-unknown-linux-gnu'
strategy: strategy:
fail-fast: true
matrix: matrix:
channel: [stable, beta, nightly] channel: [stable, beta]
target: target:
# Linux # Linux
- aarch64-unknown-linux-gnu - aarch64-unknown-linux-gnu
Loading…
Cancel
Save