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]
jobs:
# 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
# `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.
install-cross:
runs-on: ubuntu-latest
@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v1
with:
depth: 50
- uses: XAMPPRocky/get-github-release@v1
- uses: sgoudham/get-github-release@v1
id: cross
with:
owner: rust-embedded
@ -39,17 +39,16 @@ jobs:
- uses: actions/checkout@v2
with:
depth: 50
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: scripts/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
shell: bash
- run: ci/build.bash cargo ${{ matrix.target }}
- run: scripts/build.bash cargo ${{ matrix.target }}
shell: bash
- run: ci/test.bash cargo ${{ matrix.target }}
- run: scripts/test.bash cargo ${{ matrix.target }}
shell: bash
strategy:
fail-fast: true
matrix:
channel: [stable, beta, nightly]
channel: [stable, beta]
target:
# MSVC
- i686-pc-windows-msvc
@ -75,16 +74,15 @@ jobs:
- run: chmod +x /usr/local/bin/cross
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: ci/build.bash cross ${{ matrix.target }}
- run: scripts/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: scripts/build.bash cross ${{ matrix.target }}
# 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'
strategy:
fail-fast: true
matrix:
channel: [stable, beta, nightly]
channel: [stable, beta]
target:
# macOS
- x86_64-apple-darwin
@ -103,12 +101,12 @@ jobs:
name: cross-linux-musl
path: /tmp/
- run: chmod +x /tmp/cross
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: ci/build.bash /tmp/cross ${{ matrix.target }}
- run: scripts/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: scripts/build.bash /tmp/cross ${{ matrix.target }}
# These targets have issues with being tested so they are disabled
# by default. You can try disabling to see if they work for
# your project.
- run: ci/test.bash /tmp/cross ${{ matrix.target }}
- run: scripts/test.bash /tmp/cross ${{ matrix.target }}
if: |
!contains(matrix.target, 'android') &&
!contains(matrix.target, 'bsd') &&
@ -117,9 +115,8 @@ jobs:
matrix.target != 'sparc64-unknown-linux-gnu'
strategy:
fail-fast: true
matrix:
channel: [stable, beta, nightly]
channel: [stable, beta]
target:
# Linux
- aarch64-unknown-linux-gnu
Loading…
Cancel
Save