Skip to content

Add test workflow

Add test workflow #2

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
install-cross:
runs-on: ubuntu-latest
env:
platform: linux-musl
steps:
- uses: XAMPPRocky/get-github-release@v1
id: cross
with:
owner: rust-embedded
repo: cross
matches: ${{ platform }}

Check failure on line 22 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 22, Col: 20): Unrecognized named-value: 'platform'. Located at position 1 within expression: platform .github/workflows/test.yml (Line: 26, Col: 17): Unrecognized named-value: 'platform'. Located at position 1 within expression: platform
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: cross-${{ platform }}
path: ${{ steps.cross.outputs.install_path }}
linux:
runs-on: ubuntu-latest
needs: install-cross
env:
channel: stable
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v3
- name: Download Cross
uses: actions/download-artifact@v3
with:
name: cross-linux-musl
path: /tmp/
- run: chmod +x /tmp/cross
- run: ci/set_rust_version.bash ${{ channel }} ${{ target }}
- run: ci/build.bash /tmp/cross ${{ target }}
- run: ci/test.bash /tmp/cross ${{ target }}