Skip to content

update rust workflow #3

update rust workflow

update rust workflow #3

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:

Check failure on line 14 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
architecture: [x64, x86, arm64, armv7]
- name: Build
run: cargo build --verbose --release --target ${{ matrix.os }}-${{ matrix.architecture }}
- name: Run tests
run: cargo test --verbose --target ${{ matrix.os }}-${{ matrix.architecture }}
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
artifacts: "release.tar.gz,foo/*.txt"
bodyFile: "body.md"